Groovy Operator Overloading - Safe navigation operator

//Safe navigation operator: used to avoid a NullPointerException.
def user User.get(1)
def username user?.username

Comments

Popular posts from this blog

தீபம் பிளக்ஸ்

காது புடி வாத்தியார்

PCF - Cloud Foundry Overview - Starting, Restarting and Restaging applications