Translate

New Live Courses

🚀 *Gen AI Engineer Telugu (Production Focused)*
🗓️ *Date:* 30th Sept 2026, 07:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/gr
👥 *Join WA Community:*
https://www.vlrt.in/gw
💡*Course Content:*
https://www.vlrt.in/ai
▶️ *Demo Videos:*
https://www.vlrt.in/gv

🚀 *Service now Admin/ Development (ITSM)FREE Demo in Telugu*
🗓️ *Date:* 30th Sept 2026, 08:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/7r
👥 *Join WA Community:*
https://www.vlrt.in/7w
💡*Course Content:*
https://www.vlrt.in/7c
▶️ *Demo Videos:*
https://www.vlrt.in/7v

🚀 *Vulnerability Management Training Demo*
🗓️ *Date:* 30th Sept 2026, 09:00 AM IST
📝*Register Now!:*
https://www.vlrt.in/vr
👥 *Join Community:*
https://www.vlrt.in/cw
💡 *Course Content:*
https://www.vlrt.in/vc
▶️ *Demo Videos:*
https://www.vlrt.in/Vm

Wednesday, 6 October 2021

Compile Time Meta Programming @Sortable in Groovy Scripting groovy training telugu 54

 Watch This Video


https://youtu.be/s8hMyeu0xZA

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

//Person.groovy



package theraldanvega

import groovy.transform.Canonical
import groovy.transform.Sortable
@Sortable(includes = ['last','first'])
@Canonical
class Person {
    String first
    String last
}



//app.groovy
package theraldanvega
Person p1=new Person("Katie","Vega")
Person p2=new Person("Dan","Vega")
Person p3=new Person("andy","Vega")
Person p4=new Person("Jan","Vega")
Person p5=new Person("Jason","NotaVega")

def vegas=[p1,p2,p3,p4,p5]
println vegas.toSorted()

No comments:

Post a Comment

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