public abstract class ObjectMixin extends Object implements HasObjectHelper
Constructor and Description |
---|
ObjectMixin() |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
array(Object... items)
Convenience method so subclasses can implement fields() by returning array("field1", field1,
"field2", field2, ...).
|
protected abstract Object[] |
fields()
An array of alternating field names and field values.
|
protected abstract boolean |
isEntity()
Should this object behave as an entity or a value?
|
ObjectHelper |
objectHelper()
Get an object's objectHelper(), for use in implementing toString(), equals(), and hashCode().
|
String |
toString() |
protected abstract boolean isEntity()
protected abstract Object[] fields()
protected Object[] array(Object... items)
public ObjectHelper objectHelper()
HasObjectHelper
objectHelper
in interface HasObjectHelper
Copyright © 2014. All rights reserved.