|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sequence
A Sequence is an ordered list of elements. It is similar to and compatible with the Java2 java.util.List interface, but does not require it. All standard classes that implement Sequence also extend AbstractSequence. Using AbstractSequence provides default implementations for many methods, and also makes things a bit more efficient. However, client code should use Sequence rather than AbstractSequence.
Field Summary | |
---|---|
static int |
ATTRIBUTE_VALUE
|
static int |
BOOLEAN_VALUE
|
static int |
CDATA_VALUE
|
static int |
CHAR_VALUE
|
static int |
COMMENT_VALUE
|
static int |
DOCUMENT_VALUE
|
static int |
DOUBLE_VALUE
Return code used to indicate next element is 64-bit double. |
static int |
EOF_VALUE
Return code used to indicate a position is at end of the sequence. |
static java.lang.Object |
eofValue
Special magic end-of-file marker. |
static int |
FLOAT_VALUE
Return code used to indicate next element is 32-bit float. |
static int |
GROUP_VALUE
|
static int |
INT_S16_VALUE
|
static int |
INT_S32_VALUE
|
static int |
INT_S64_VALUE
|
static int |
INT_S8_VALUE
|
static int |
INT_U16_VALUE
|
static int |
INT_U32_VALUE
|
static int |
INT_U64_VALUE
|
static int |
INT_U8_VALUE
|
static int |
OBJECT_VALUE
|
static int |
PRIM_VALUE
|
static int |
PROCESSING_INSTRUCTION_VALUE
|
static int |
TEXT_BYTE_VALUE
A byte in an encoded string. |
Method Summary | |
---|---|
java.util.Enumeration |
elements()
|
void |
fill(java.lang.Object value)
|
java.lang.Object |
get(int index)
See java.util.List. |
boolean |
isEmpty()
True is this sequence contains no elements. |
int |
size()
See java.util.List. |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Methods inherited from interface gnu.lists.Consumable |
---|
consume |
Field Detail |
---|
static final java.lang.Object eofValue
static final int EOF_VALUE
static final int PRIM_VALUE
static final int INT_U8_VALUE
static final int INT_S8_VALUE
static final int INT_U16_VALUE
static final int INT_S16_VALUE
static final int INT_U32_VALUE
static final int INT_S32_VALUE
static final int INT_U64_VALUE
static final int INT_S64_VALUE
static final int FLOAT_VALUE
static final int DOUBLE_VALUE
static final int BOOLEAN_VALUE
static final int TEXT_BYTE_VALUE
static final int CHAR_VALUE
static final int CDATA_VALUE
static final int OBJECT_VALUE
static final int GROUP_VALUE
static final int DOCUMENT_VALUE
static final int ATTRIBUTE_VALUE
static final int COMMENT_VALUE
static final int PROCESSING_INSTRUCTION_VALUE
Method Detail |
---|
boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
int size()
size
in interface java.util.Collection
size
in interface java.util.List
java.lang.Object get(int index)
get
in interface java.util.List
void fill(java.lang.Object value)
java.util.Enumeration elements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |