public class Tuple
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Tuple()
Constructs an empty tuple.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
attributeNames()
Returns a Set of all attribute names of this Tuple.
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of attribute name.
|
int |
hashCode() |
boolean |
isEmpty() |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the attribute name.
|
int |
size() |
java.lang.String |
toString() |
public java.lang.Object getAttribute(java.lang.String name)
name
- The attribute name.public void setAttribute(java.lang.String name, java.lang.Object value)
name
- The attribute name. Must not be null.value
- The attribute value. Must not be null.public java.util.Set<java.lang.String> attributeNames()
public boolean isEmpty()
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object