Wednesday, 6 October 2021

Compile Time Meta Programming @Tuple Constructor in Groovy Scripting groovy training telugu 51

 Watch This Video

https://youtu.be/ZHh7odsQhUk


-----------------------------------------------------------------------------------------

http://docs.groovy-lang.org/latest/html/gapi/index.html?groovy/lang/Range

//app.groovy

Person p= new Person("Dan","vega","[email protected]")
println p.toString()


//Person.groocy

import groovy.transform.ToString
import groovy.transform.TupleConstructor

@ToString
@TupleConstructor

class Person{

String first
String last
String email

}

No comments:

Post a Comment

Note: only a member of this blog may post a comment.