Created
December 14, 2019 14:00
-
-
Save thiagolenz/85672b12e4c2e0f7dffb4e56e85f6d08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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