Skip to content

Instantly share code, notes, and snippets.

@liviutudor
Created September 21, 2017 05:45
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/f5699a97313ff825a96580f68fe9fcd7 to your computer and use it in GitHub Desktop.
Save liviutudor/f5699a97313ff825a96580f68fe9fcd7 to your computer and use it in GitHub Desktop.
Using @DeleGate in groovy, first bean
import groovy.transform.Sortable
import groovy.transform.TupleConstructor
@Sortable
@TupleConstructor
class BeanOne {
String firstName
String familyName
public String getFullName() {
"$firstName $familyName"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment