Package gnu.lists
Interface Sequence<E>
-
- All Superinterfaces:
BoundedHashable
,Collection<E>
,Consumable
,Iterable<E>
,List<E>
- All Known Subinterfaces:
AVector<E>
,CharSeq
,GVector<E>
,IntSequence
- All Known Implementing Classes:
AbstractCharVector
,ArgListPair
,ArgListVector
,BitVector
,Blob
,ByteVector
,CharBuffer
,CharVector
,ComposedArray.AsSequence
,EmptyList
,F32Vector
,F64Vector
,FlattenedArray
,FString
,FVector
,GeneralArray1
,ImmutablePair
,IndirectIndexedSeq
,IntVector
,IString
,IString.SubString
,LList
,LongVector
,Nodes.NodeVector
,Pair
,PairWithPosition
,PrimIntegerVector
,Range
,Range.IntRange
,RAPair
,S16Vector
,S32Vector
,S64Vector
,S8Vector
,ShortVector
,SimpleVector
,SubSequence
,SyntaxForms.PairSyntaxForm
,SyntaxForms.PairWithPositionSyntaxForm
,Translator.FormStack
,U16Vector
,U32Vector
,U64Vector
,U8Vector
public interface Sequence<E> extends List<E>, Consumable, BoundedHashable
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
Fields Modifier and Type Field Description 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
ELEMENT_VALUE
static int
EOF_VALUE
Return code used to indicate a position is at end of the sequence.static 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
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Enumeration<E>
elements()
void
fill(E value)
E
get(int index)
See java.util.List.int
getInt(int arg1)
boolean
isEmpty()
True is this sequence contains no elements.E
set(int index, E value)
See java.util.List.int
size()
See java.util.List.-
Methods inherited from interface gnu.kawa.util.BoundedHashable
boundedHash
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface gnu.lists.Consumable
consume
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
-
-
-
Field Detail
-
eofValue
static final Object eofValue
Special magic end-of-file marker.
-
EOF_VALUE
static final int EOF_VALUE
Return code used to indicate a position is at end of the sequence.- See Also:
- Constant Field Values
-
PRIM_VALUE
static final int PRIM_VALUE
- See Also:
- Constant Field Values
-
INT_U8_VALUE
static final int INT_U8_VALUE
- See Also:
- Constant Field Values
-
INT_S8_VALUE
static final int INT_S8_VALUE
- See Also:
- Constant Field Values
-
INT_U16_VALUE
static final int INT_U16_VALUE
- See Also:
- Constant Field Values
-
INT_S16_VALUE
static final int INT_S16_VALUE
- See Also:
- Constant Field Values
-
INT_U32_VALUE
static final int INT_U32_VALUE
- See Also:
- Constant Field Values
-
INT_S32_VALUE
static final int INT_S32_VALUE
- See Also:
- Constant Field Values
-
INT_U64_VALUE
static final int INT_U64_VALUE
- See Also:
- Constant Field Values
-
INT_S64_VALUE
static final int INT_S64_VALUE
- See Also:
- Constant Field Values
-
FLOAT_VALUE
static final int FLOAT_VALUE
Return code used to indicate next element is 32-bit float.- See Also:
- Constant Field Values
-
DOUBLE_VALUE
static final int DOUBLE_VALUE
Return code used to indicate next element is 64-bit double.- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
static final int BOOLEAN_VALUE
- See Also:
- Constant Field Values
-
TEXT_BYTE_VALUE
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.- See Also:
- Constant Field Values
-
CHAR_VALUE
static final int CHAR_VALUE
- See Also:
- Constant Field Values
-
CDATA_VALUE
static final int CDATA_VALUE
- See Also:
- Constant Field Values
-
OBJECT_VALUE
static final int OBJECT_VALUE
- See Also:
- Constant Field Values
-
ELEMENT_VALUE
static final int ELEMENT_VALUE
- See Also:
- Constant Field Values
-
DOCUMENT_VALUE
static final int DOCUMENT_VALUE
- See Also:
- Constant Field Values
-
ATTRIBUTE_VALUE
static final int ATTRIBUTE_VALUE
- See Also:
- Constant Field Values
-
COMMENT_VALUE
static final int COMMENT_VALUE
- See Also:
- Constant Field Values
-
PROCESSING_INSTRUCTION_VALUE
static final int PROCESSING_INSTRUCTION_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEmpty
boolean isEmpty()
True is this sequence contains no elements.
-
size
int size()
See java.util.List.
-
getInt
int getInt(int arg1)
-
fill
void fill(E value)
-
elements
Enumeration<E> elements()
-
-