S - The concrete type of the smart object.public abstract class SmartObject<S extends SmartObject<S>> extends Object implements Comparable<S>
Object class. It also adds a generics based copy() method that is
superior to the clone() method in many ways.| Constructor and Description |
|---|
SmartObject() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSerializableClass(Class<?> serializable)
This protected method allows a subclass to add a class type that can be serialized using its
toString() method to the mappers.
|
protected void |
addSerializableClass(com.fasterxml.jackson.databind.Module module)
This protected method allows a subclass to add a Jackson module to the set of modules used by
the mappers.
|
int |
compareTo(S object) |
S |
copy()
This method should work for all objects.
|
boolean |
equals(Object object)
This method determines whether or not two objects are equal.
|
int |
hashCode()
This method returns a hash code for the object based on its string form.
|
protected String |
toExposedString() |
String |
toString()
This method returns a string containing a structured, human readable version of the object.
|
public String toString()
protected String toExposedString()
public boolean equals(Object object)
public int compareTo(S object)
compareTo in interface Comparable<S extends SmartObject<S>>public S copy()
public int hashCode()
protected void addSerializableClass(Class<?> serializable)
serializable - The type of class that can be serialized using its toString() method.protected void addSerializableClass(com.fasterxml.jackson.databind.Module module)
module - The type of class that can be serialized using its toString() method.Copyright © 2014 Crater Dog Technologies(TM). All rights reserved.