Package ptolemy.actor.gt
Class GraphAnalyzer.IndexedList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<E>
-
- ptolemy.actor.gt.data.Tuple<java.lang.Object>
-
- ptolemy.actor.gt.data.Pair<java.util.List<?>,java.lang.Integer>
-
- ptolemy.actor.gt.GraphAnalyzer.IndexedList
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<java.lang.Object>,java.util.Collection<java.lang.Object>,java.util.Deque<java.lang.Object>,java.util.List<java.lang.Object>,java.util.Queue<java.lang.Object>
- Enclosing class:
- GraphAnalyzer
public static class GraphAnalyzer.IndexedList extends Pair<java.util.List<?>,java.lang.Integer>
A pair of a list and an index number.- Since:
- Ptolemy II 7.1
- Version:
- $Id$
- Author:
- Thomas Huining Feng
- See Also:
- Serialized Form
- Pt.AcceptedRating:
- Red (tfeng)
- Pt.ProposedRating:
- Yellow (tfeng)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Test the equivalence between two IndexedLists.inthashCode()Return the hash code of the element in the list that the index points to.-
Methods inherited from class ptolemy.actor.gt.data.Pair
getFirst, getSecond, set, setFirst, setSecond
-
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
-
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
Test the equivalence between two IndexedLists. They are equal if the elements in the lists that their indices point to are equal (by reference).- Specified by:
equalsin interfacejava.util.Collection<java.lang.Object>- Specified by:
equalsin interfacejava.util.List<java.lang.Object>- Overrides:
equalsin classjava.util.AbstractList<java.lang.Object>- Parameters:
object- The object to test.- Returns:
- true if the object is an IndexedList and it is equal to this IndexedList; false otherwise.
-
hashCode
public int hashCode()
Return the hash code of the element in the list that the index points to.- Specified by:
hashCodein interfacejava.util.Collection<java.lang.Object>- Specified by:
hashCodein interfacejava.util.List<java.lang.Object>- Overrides:
hashCodein classjava.util.AbstractList<java.lang.Object>- Returns:
- The hash code.
-
-