Skip to content

Instantly share code, notes, and snippets.

@thiagolenz
Created December 14, 2019 14:00
Show Gist options
  • Select an option

  • Save thiagolenz/85672b12e4c2e0f7dffb4e56e85f6d08 to your computer and use it in GitHub Desktop.

Select an option

Save thiagolenz/85672b12e4c2e0f7dffb4e56e85f6d08 to your computer and use it in GitHub Desktop.
public interface Identificacao {
String getCnpj();
Integer getPeriodo();
static Identificacao of(final String cnpj, final Integer periodo) {
return new Identificacao () {
public String getCnpj() {
return cnpj;
}
public Integer getPeriodo() {
return periodo;
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment