de.fau.cs.www8.jadeowlcodec.tool
Class CanonicalizedImmutable
java.lang.Object
de.fau.cs.www8.jadeowlcodec.tool.CanonicalizedImmutable
- All Implemented Interfaces:
- java.lang.Comparable<CanonicalizedImmutable>
- Direct Known Subclasses:
- AbsDescription, CanonicalizedTriple, Sentence
public abstract class CanonicalizedImmutable
- extends java.lang.Object
- implements java.lang.Comparable<CanonicalizedImmutable>
these are canonicalized and thus have to remain immutable!
identity can be checked with ==, but only instances of the
same class can be equal!
need to be comparable for unions etc to be input ordering unaware
- Author:
- Ulf Schreiber
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CanonicalizedImmutable
protected CanonicalizedImmutable(CanonicalizedImmutable.Identity id)
compareTo
public int compareTo(CanonicalizedImmutable o)
- Specified by:
compareTo in interface java.lang.Comparable<CanonicalizedImmutable>
getCanonicalizedInstance
protected static CanonicalizedImmutable getCanonicalizedInstance(CanonicalizedImmutable.Identity id)
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg