public abstract class AbstractTuple extends java.lang.Object implements ITuple
| Constructor and Description |
|---|
AbstractTuple() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
doCalcHash() |
<T> java.util.Set<T> |
getDistinctElements() |
java.lang.Object[] |
getElements()
As the tuple is supposed to be immutable, do not modify the returned array.
|
protected boolean |
internalEquals(ITuple other)
Compares the elements stored in this tuple to another tuple
|
java.util.Map<java.lang.Object,java.lang.Integer> |
invertIndex()
Calculates an inverted index of the elements of this pattern.
|
java.util.Map<java.lang.Object,java.util.List<java.lang.Integer>> |
invertIndexWithMupliplicity()
Calculates an inverted index of the elements of this pattern.
|
protected java.lang.IndexOutOfBoundsException |
raiseIndexingError(int index) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, getSize, toImmutablepublic java.lang.Object[] getElements()
getElements in interface ITuplepublic <T> java.util.Set<T> getDistinctElements()
getDistinctElements in interface ITuplepublic java.util.Map<java.lang.Object,java.lang.Integer> invertIndex()
invertIndex in interface ITuplepublic java.util.Map<java.lang.Object,java.util.List<java.lang.Integer>> invertIndexWithMupliplicity()
invertIndexWithMupliplicity in interface ITupleprotected java.lang.IndexOutOfBoundsException raiseIndexingError(int index)
protected boolean internalEquals(ITuple other)
public java.lang.String toString()
toString in class java.lang.Objectprotected int doCalcHash()