gnu.lists

Interface Sequence

All Superinterfaces:
java.util.List, Consumable
Known Subinterfaces:
CharSeq
Known Implementing Classes:
BitVector, Buffer, BufferContent, BufferContent, CharBuffer, F32Vector, F64Vector, FString, FVector, GapVector, GeneralArray1, LineOffsets, LList, Pair, PairWithPosition, S16Vector, S32Vector, S64Vector, S8Vector, SimpleVector, StableVector, SubCharSeq, SubSequence, SwingBuffer, SwtBuffer, SwtCharBuffer, U16Vector, U32Vector, U64Vector, U8Vector, ValueStack

public interface Sequence
extends java.util.List, Consumable

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 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.
static Object
eofValue
Special magic end-of-file marker.

Method Summary

java.util.Enumeration
elements()
void
fill(Object value)
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 gnu.lists.Consumable

consume

Field Details

ATTRIBUTE_VALUE

public static final int ATTRIBUTE_VALUE
Field Value:
35

BOOLEAN_VALUE

public static final int BOOLEAN_VALUE
Field Value:
27

CDATA_VALUE

public static final int CDATA_VALUE
Field Value:
31

CHAR_VALUE

public static final int CHAR_VALUE
Field Value:
29

COMMENT_VALUE

public static final int COMMENT_VALUE
Field Value:
36

DOCUMENT_VALUE

public static final int DOCUMENT_VALUE
Field Value:
34

DOUBLE_VALUE

public static final int DOUBLE_VALUE
Return code used to indicate next element is 64-bit double.
Field Value:
26

EOF_VALUE

public static final int EOF_VALUE
Return code used to indicate a position is at end of the sequence.
Field Value:
0

FLOAT_VALUE

public static final int FLOAT_VALUE
Return code used to indicate next element is 32-bit float.
Field Value:
25

GROUP_VALUE

public static final int GROUP_VALUE
Field Value:
33

INT_S16_VALUE

public static final int INT_S16_VALUE
Field Value:
20

INT_S32_VALUE

public static final int INT_S32_VALUE
Field Value:
22

INT_S64_VALUE

public static final int INT_S64_VALUE
Field Value:
24

INT_S8_VALUE

public static final int INT_S8_VALUE
Field Value:
18

INT_U16_VALUE

public static final int INT_U16_VALUE
Field Value:
19

INT_U32_VALUE

public static final int INT_U32_VALUE
Field Value:
21

INT_U64_VALUE

public static final int INT_U64_VALUE
Field Value:
23

INT_U8_VALUE

public static final int INT_U8_VALUE
Field Value:
17

OBJECT_VALUE

public static final int OBJECT_VALUE
Field Value:
32

PRIM_VALUE

public static final int PRIM_VALUE
Field Value:
16

PROCESSING_INSTRUCTION_VALUE

public static final int PROCESSING_INSTRUCTION_VALUE
Field Value:
37

TEXT_BYTE_VALUE

public static final int TEXT_BYTE_VALUE
A byte in an encoded string. Part of a char, in contrast with INT_S8_VALUE, which is an integer.
Field Value:
28

eofValue

public static final Object eofValue
Special magic end-of-file marker.

Method Details

elements

public java.util.Enumeration elements()

fill

public void fill(Object value)

get

public Object get(int index)
See java.util.List.

isEmpty

public boolean isEmpty()
True is this sequence contains no elements.

size

public int size()
See java.util.List.