org.ckkloverdos.tuple
Interface ITuple

All Known Subinterfaces:
IPair
All Known Implementing Classes:
BinaryHint, ListTuple, Pair, TupleSkeleton

public interface ITuple

A tuple of objects.

Author:
Christos KK Loverdos

Method Summary
 java.lang.Object get(int n)
          Returns the nth element of the tuple.
 boolean isEmpty()
          Returns true iff this tuple contains no elements.
 boolean isNull(int n)
          Returns true iff the nth element of the tuple is null.
 int size()
          Returns the size of this tuple.
 

Method Detail

get

java.lang.Object get(int n)
Returns the nth element of the tuple. Indices start from zero.

Parameters:
n -
Throws:
java.lang.IndexOutOfBoundsException - if the index n is beyond the bounds of this tuple.

size

int size()
Returns the size of this tuple.


isNull

boolean isNull(int n)
Returns true iff the nth element of the tuple is null.

Parameters:
n -
Throws:
java.lang.IndexOutOfBoundsException - if the index n is beyond the bounds of this tuple.

isEmpty

boolean isEmpty()
Returns true iff this tuple contains no elements.



Copyright © 1999-2007 Christos KK Loverdos. All Rights Reserved.