ptolemy.actor.gt.data
Class Tuple<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<E>
                  extended by ptolemy.actor.gt.data.Tuple<E>
Type Parameters:
E - Type of the elements in this tuple.
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.Queue<E>
Direct Known Subclasses:
GraphMatcher.LookbackEntry, Pair

public class Tuple<E>
extends java.util.LinkedList<E>

Generic tuple data structure.

Since:
Ptolemy II 8.0
Version:
$Id: Tuple.java 54815 2009-06-30 05:18:27Z tfeng $
Author:
Thomas Huining Feng
See Also:
Serialized Form
Accepted Rating:
Red (tfeng)
Proposed Rating:
Yellow (tfeng)

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Tuple(java.util.Collection<E> collection)
          Construct a tuple containing all the elements of the given collection.
Tuple(E... elements)
          Construct a tuple with all the given elements.
 
Method Summary
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Tuple

public Tuple(java.util.Collection<E> collection)
Construct a tuple containing all the elements of the given collection.

Parameters:
collection - The collection.

Tuple

public Tuple(E... elements)
Construct a tuple with all the given elements.

Parameters:
elements - The elements.