public static class GraphAnalyzer.IndexedList extends Pair<java.util.List<?>,java.lang.Integer>
Red (tfeng) |
Yellow (tfeng) |
Constructor and Description |
---|
IndexedList(java.util.List<?> list,
java.lang.Integer mark)
Construct an IndexedList.
|
Modifier and Type | Method and 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.
|
getFirst, getSecond, set, setFirst, setSecond
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
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
IndexedList(java.util.List<?> list, java.lang.Integer mark)
list
- The list.mark
- The index number.public boolean equals(java.lang.Object object)
equals
in interface java.util.Collection<java.lang.Object>
equals
in interface java.util.List<java.lang.Object>
equals
in class java.util.AbstractList<java.lang.Object>
object
- The object to test.public int hashCode()
hashCode
in interface java.util.Collection<java.lang.Object>
hashCode
in interface java.util.List<java.lang.Object>
hashCode
in class java.util.AbstractList<java.lang.Object>