I can't find information about this. I wrote a DataType class and want to return the value property as the default
MyInteger{
Integer value
MyInteger(Integer iv)
{
this.value = iv
}
}
How can I get the value without calling getValue() ?
MyInteger i = new MyInteger(5)
print i.value //works
print i.getValue() //works
print i //this is what I want to achieve
Integer realInt = i //or more specific this
The Standard Integer is capable of that, but how? Thanks for any hint!