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, wait
get, getSize, toImmutable
public java.lang.Object[] getElements()
getElements
in interface ITuple
public <T> java.util.Set<T> getDistinctElements()
getDistinctElements
in interface ITuple
public java.util.Map<java.lang.Object,java.lang.Integer> invertIndex()
invertIndex
in interface ITuple
public java.util.Map<java.lang.Object,java.util.List<java.lang.Integer>> invertIndexWithMupliplicity()
invertIndexWithMupliplicity
in interface ITuple
protected java.lang.IndexOutOfBoundsException raiseIndexingError(int index)
protected boolean internalEquals(ITuple other)
public java.lang.String toString()
toString
in class java.lang.Object
protected int doCalcHash()