Skip to content

Instantly share code, notes, and snippets.

@liviutudor
Created September 21, 2017 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liviutudor/4d631195eefc98b327921196c6f63c91 to your computer and use it in GitHub Desktop.
Save liviutudor/4d631195eefc98b327921196c6f63c91 to your computer and use it in GitHub Desktop.
Using @DeleGate in groovy, second bean
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