Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.phoenixst.plexus
Class GraphTest.OrderedPair  view GraphTest.OrderedPair download GraphTest.OrderedPair.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended bycom.phoenixst.plexus.GraphTest.OrderedPair
All Implemented Interfaces:
java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable
Enclosing class:
GraphTest

protected static class GraphTest.OrderedPair
extends java.util.AbstractList
implements java.util.RandomAccess, java.io.Serializable

A simple immutable ordered pair implementation.


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
private  java.lang.Object first
           
private  java.lang.Object second
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GraphTest.OrderedPair(int first, int second)
           
 
Method Summary
 java.lang.Object get(int index)
          Returns the elements at the specified position in the list.
 int size()
          Get the number of elements in this list.
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

first

private java.lang.Object first

second

private java.lang.Object second
Constructor Detail

GraphTest.OrderedPair

public GraphTest.OrderedPair(int first,
                             int second)
Method Detail

size

public int size()
Description copied from interface: java.util.List
Get the number of elements in this list. If the list contains more than Integer.MAX_VALUE elements, return Integer.MAX_VALUE.

Specified by:
size in interface java.util.List

get

public java.lang.Object get(int index)
Description copied from class: java.util.AbstractList
Returns the elements at the specified position in the list.

Specified by:
get in interface java.util.List