Created
September 21, 2017 05:46
-
-
Save liviutudor/4d631195eefc98b327921196c6f63c91 to your computer and use it in GitHub Desktop.
Using @DeleGate in groovy, second bean
This file contains 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
import groovy.transform.Sortable | |
import groovy.transform.TupleConstructor | |
@Sortable | |
@TupleConstructor | |
class BeanTwo { | |
int yob | |
public int getAge() { | |
new Date().year - yob | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment