Class 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)
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Test the equivalence between two IndexedLists.
      int hashCode()
      Return the hash code of the element in the list that the index points to.
      • 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.AbstractSequentialList

        iterator
      • Methods inherited from class java.util.AbstractList

        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.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Deque

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        containsAll, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
    • 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:
        equals in interface java.util.Collection<java.lang.Object>
        Specified by:
        equals in interface java.util.List<java.lang.Object>
        Overrides:
        equals in class java.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:
        hashCode in interface java.util.Collection<java.lang.Object>
        Specified by:
        hashCode in interface java.util.List<java.lang.Object>
        Overrides:
        hashCode in class java.util.AbstractList<java.lang.Object>
        Returns:
        The hash code.