In switching from AS3 to JAVA I am finding there are a few minor niceties that I miss, one of them specifically being the with keyword. Is there anything similar to this in JAVA (6 or less)?
I am parsing values out of an object and would rather write something like:
/** Example in AS3 **/
function FancyParsingContructorInAS3(values:Object):void {
with (values) {
this.x = x; // functionally equivalent to `this.x = values.x;`
this.y = y;
this.width = width;
this.height = height;
}
}