com.basistech.rlp
Class RLPIntegerTriple.List
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<RLPIntegerTriple>
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.
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 |
RLPIntegerTriple.List
public RLPIntegerTriple.List(IntBuffer b)
- Construct from an IntBuffer of data.
- Parameters:
b
- java.nio.IntBuffer
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.