public abstract class Tuple
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
abstract java.lang.Object |
get(int index) |
<T> java.util.Set<T> |
getDistinctElements() |
java.lang.Object[] |
getElements()
As the tuple is supposed to be immutable, do not modify the returned array.
|
abstract int |
getSize() |
int |
hashCode() |
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.
|
Tuple |
replaceAll(java.lang.Object obsolete,
java.lang.Object replacement) |
java.lang.String |
toString() |
public abstract int getSize()
public abstract java.lang.Object get(int index)
public java.lang.Object[] getElements()
public <T> java.util.Set<T> getDistinctElements()
public java.util.Map<java.lang.Object,java.lang.Integer> invertIndex()
public java.util.Map<java.lang.Object,java.util.List<java.lang.Integer>> invertIndexWithMupliplicity()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Tuple replaceAll(java.lang.Object obsolete, java.lang.Object replacement)