public class Tuple extends Object implements Cloneable, Serializable
Constructor and Description |
---|
Tuple(Object[] entities)
Create a new tuple.
|
Tuple(Object entity1,
Object entity2)
Convenience constructor for binary tuples.
|
Tuple(Object entity1,
Object entity2,
Object entity3)
Convenience constructor for binary tuples.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this tuple.
|
boolean |
equals(Object o)
Test two tuples for equality.
|
Object |
get(int n)
Get an entity.
|
Object[] |
getEntities()
Get entities
|
Object |
getEntity(int n)
Get an entity.
|
int |
hashCode()
Compute the hashcode of the tuple.
|
int |
size()
Get the size.
|
String |
toString()
Convert this tuple to a string representation.
|
public Tuple(Object entity1, Object entity2)
entity1
- The first object in the tuple.entity2
- The second object in the tuple.public Tuple(Object entity1, Object entity2, Object entity3)
entity1
- The first object in the tuple.entity2
- The second object in the tuple.entity3
- The third object in the tuple.public Tuple(Object[] entities)
entities
- The objects in the tuple.public Object getEntity(int n)
n
- The entities position.public Object[] getEntities()
public Object get(int n)
n
- The entities position.public int size()
public int hashCode()
public boolean equals(Object o)
public String toString()
Copyright © 2012. All Rights Reserved.