I have
Boolean condition;
public Boolean isCondition() { return condition; }
Is the following usage of this method then allowed, as with a primitive,
if (isCondition())
{
//...
}
I would use that for primitives but not sure about the class. Does it need to be checked for NULLs? Do I need to getBooleanValue() first?