public class MatchingFrame extends Tuple implements java.lang.Cloneable
| Constructor and Description |
|---|
MatchingFrame(java.lang.Object pattern,
int keySize,
int frameSize) |
| Modifier and Type | Method and Description |
|---|---|
MatchingFrame |
clone() |
java.lang.Object |
get(int index) |
java.lang.Object[] |
getElements()
As the tuple is supposed to be immutable, do not modify the returned array.
|
MatchingKey |
getKey() |
java.lang.Object |
getPattern() |
int |
getSize() |
java.lang.Object |
getValue(java.lang.Integer position)
Returns the value stored inside the matching frame.
|
void |
setValue(java.lang.Integer position,
java.lang.Object value)
Sets the value of the variable at the given position
|
boolean |
testAndSetValue(java.lang.Integer position,
java.lang.Object value) |
java.lang.String |
toString() |
equals, getDistinctElements, hashCode, invertIndex, invertIndexWithMupliplicity, replaceAllpublic MatchingFrame(java.lang.Object pattern,
int keySize,
int frameSize)
public java.lang.Object getValue(java.lang.Integer position)
position - java.lang.IndexOutOfBoundsException - if position is negativejava.lang.IllegalArgumentException - if the position is larger then the length of the framepublic void setValue(java.lang.Integer position,
java.lang.Object value)
position - the position of the variable within the framevalue - the value to be set for the variablepublic boolean testAndSetValue(java.lang.Integer position,
java.lang.Object value)
public java.lang.Object getPattern()
public MatchingKey getKey()
public MatchingFrame clone()
clone in class java.lang.Objectpublic java.lang.Object get(int index)
public java.lang.Object[] getElements()
TuplegetElements in class Tuple