Translate

Wednesday, 6 October 2021

Compile Time Meta Programming @Canonical in Groovy Scripting groovy training telugu 52

 Watch This Video

https://youtu.be/0omfYgUId0c


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



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

//app.groovy

Person p1= new Person("Dan","vega","danvega@gmail.com")
Person p2= new Person("Dan","vega","danvega@gmail.com")

assert p1==p2

println p.toString()


//Person.groovy

import groovy.transform.Canonical


@Canonical

class Person{

String first
String last
String email

}

No comments:

Post a Comment

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