org.openrdf.sesame.query
Class Tuple

java.lang.Object
  extended byorg.openrdf.sesame.query.Tuple

public class Tuple
extends Object

Represents a tuple of Values.

Version:
$Revision: 1.4.4.2 $
Author:
Peter van 't Hof

Constructor Summary
Tuple()
          Creates a new Tuple.
 
Method Summary
 void add(Value value)
          Adds the supplied Value to this Tuple.
 boolean equals(Object other)
          Indicates whether some other object is equal to this one.
 int hashCode()
          Returns hash code for this Tuple.
 Iterator iterator()
          Returns iterator over this Tuple.
 String toString()
          Returns String representation of this Tuple.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple()
Creates a new Tuple.

Method Detail

add

public void add(Value value)
Adds the supplied Value to this Tuple.

Parameters:
value - Value to add.

iterator

public Iterator iterator()
Returns iterator over this Tuple.

Returns:
Iterator over this Tuple.

equals

public boolean equals(Object other)
Indicates whether some other object is equal to this one.

Parameters:
other - Object to compare this Tuple to.
Returns:
True if this object is the same as the other argument; false otherwise.

hashCode

public int hashCode()
Returns hash code for this Tuple.

Returns:
Hash code for this Tuple.

toString

public String toString()
Returns String representation of this Tuple.

Returns:
String representation of this Tuple.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.