com.basistech.rlp
Class RLPIntegerTriple.List

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<RLPIntegerTriple>
          extended by com.basistech.rlp.RLPIntegerTriple.List
All Implemented Interfaces:
Iterable<RLPIntegerTriple>, Collection<RLPIntegerTriple>, List<RLPIntegerTriple>
Enclosing class:
RLPIntegerTriple

public static class RLPIntegerTriple.List
extends AbstractList<RLPIntegerTriple>

Iteration support for an IntBuffer viewed as a List of RLPIntegerTriple objects.


Constructor Summary
RLPIntegerTriple.List(IntBuffer b)
          Construct from an IntBuffer of data.
 
Method Summary
 RLPIntegerTriple get(int index)
          Retrieves the specified RLPIntegerTriple.
 int size()
          Number of triples in the list.
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

RLPIntegerTriple.List

public RLPIntegerTriple.List(IntBuffer b)
Construct from an IntBuffer of data.

Parameters:
b - java.nio.IntBuffer
Method Detail

size

public int size()
Number of triples in the list.

Specified by:
size in interface Collection<RLPIntegerTriple>
Specified by:
size in interface List<RLPIntegerTriple>
Specified by:
size in class AbstractCollection<RLPIntegerTriple>
Returns:
Number of elements in the list.

get

public RLPIntegerTriple get(int index)
                     throws IndexOutOfBoundsException
Retrieves the specified RLPIntegerTriple.

Specified by:
get in interface List<RLPIntegerTriple>
Specified by:
get in class AbstractList<RLPIntegerTriple>
Parameters:
index - Which element to retrieve.
Returns:
The requested RLPIntegerTriple.
Throws:
IndexOutOfBoundsException - If the index is < 0 or > the size.


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.