|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.core.ProperObject
proper.imp.Fingerprint
public class Fingerprint
This class handles Fingerprints, i.e. comparing them and also taking care of NULLs.
Field Summary | |
---|---|
static java.lang.String |
DATE
|
static java.lang.String |
DOUBLE
|
static java.lang.String |
INTEGER
|
static java.lang.String |
LIST
|
static java.lang.String |
LONG
|
static java.lang.String |
NULL
|
static java.lang.String |
PREDICATE
|
static java.lang.String |
SQL_DATE
|
static java.lang.String |
STRING
|
Fields inherited from interface proper.core.ProperInterface |
---|
VERSION |
Constructor Summary | |
---|---|
Fingerprint(java.lang.Object value)
initializes the object |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
compares the given object with itself |
boolean |
equals(java.lang.Object obj)
checks whether the fingerprint is the same |
java.lang.String |
getSuperClass(Fingerprint fp)
returns the smallest class with which this and the given object can be described |
static java.lang.String |
getSuperClass(Fingerprint fp1,
Fingerprint fp2)
returns the smallest class with which both objects can be described. |
java.lang.String |
getSuperClass(java.lang.Object o)
returns the smallest class with which this and the given object can be described |
static java.lang.String |
getSuperClass(java.lang.Object o1,
java.lang.Object o2)
returns the smallest class with which both objects can be described. |
java.lang.Object |
getValue()
returns the stored value |
boolean |
isNull()
checks whether the stored value depicts a NULL value |
static boolean |
isNull(java.lang.Object value)
checks whether the given value depicts a NULL value |
static void |
main(java.lang.String[] args)
for testing only |
java.lang.String |
toString()
returns the class name of the value |
Methods inherited from class proper.core.ProperObject |
---|
addListener, addOutput, classInVerbose, debugprint, debugprint, debugprint, debugprint, debugprintln, debugprintln, debugprintln, debugprintln, debugprintln, getListeners, getRuntime, getVerbose, getVerboseLevel, getVerboseLevelForClass, getVerboseString, getVerboseStringForClass, notifyListener, notifyListeners, print, print, print, print, println, println, println, println, println, printMemory, removeListener, setOutput, setVerbose, setVerboseLevel, setVerboseString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STRING
public static final java.lang.String INTEGER
public static final java.lang.String LONG
public static final java.lang.String DOUBLE
public static final java.lang.String DATE
public static final java.lang.String SQL_DATE
public static final java.lang.String LIST
public static final java.lang.String PREDICATE
public static final java.lang.String NULL
Constructor Detail |
---|
public Fingerprint(java.lang.Object value)
value
- the object to get the fingerprint fromMethod Detail |
---|
public java.lang.Object getValue()
public boolean isNull()
public static boolean isNull(java.lang.Object value)
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getSuperClass(java.lang.Object o)
getSuperClass(Object, Object)
public java.lang.String getSuperClass(Fingerprint fp)
getSuperClass(Object, Object)
public static java.lang.String getSuperClass(Fingerprint fp1, Fingerprint fp2)
public static java.lang.String getSuperClass(java.lang.Object o1, java.lang.Object o2)
public java.lang.String toString()
toString
in class ProperObject
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |