Watch This Video
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.