Package gnu.lists
Interface Sequence<E>
- All Superinterfaces:
BoundedHashable
,Collection<E>
,Consumable
,Iterable<E>
,List<E>
,SequencedCollection<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
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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Return code used to indicate next element is 64-bit double.static final int
static final int
Return code used to indicate a position is at end of the sequence.static final Object
Special magic end-of-file marker.static final int
Return code used to indicate next element is 32-bit float.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
A byte in an encoded string. -
Method Summary
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, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, subList, toArray, toArray
-
Field Details
-
eofValue
Special magic end-of-file marker. -
EOF_VALUE
static final int EOF_VALUEReturn code used to indicate a position is at end of the sequence.- See Also:
-
PRIM_VALUE
static final int PRIM_VALUE- See Also:
-
INT_U8_VALUE
static final int INT_U8_VALUE- See Also:
-
INT_S8_VALUE
static final int INT_S8_VALUE- See Also:
-
INT_U16_VALUE
static final int INT_U16_VALUE- See Also:
-
INT_S16_VALUE
static final int INT_S16_VALUE- See Also:
-
INT_U32_VALUE
static final int INT_U32_VALUE- See Also:
-
INT_S32_VALUE
static final int INT_S32_VALUE- See Also:
-
INT_U64_VALUE
static final int INT_U64_VALUE- See Also:
-
INT_S64_VALUE
static final int INT_S64_VALUE- See Also:
-
FLOAT_VALUE
static final int FLOAT_VALUEReturn code used to indicate next element is 32-bit float.- See Also:
-
DOUBLE_VALUE
static final int DOUBLE_VALUEReturn code used to indicate next element is 64-bit double.- See Also:
-
BOOLEAN_VALUE
static final int BOOLEAN_VALUE- See Also:
-
TEXT_BYTE_VALUE
static final int TEXT_BYTE_VALUEA byte in an encoded string. Part of a char, in contrast with INT_S8_VALUE, which is an integer.- See Also:
-
CHAR_VALUE
static final int CHAR_VALUE- See Also:
-
CDATA_VALUE
static final int CDATA_VALUE- See Also:
-
OBJECT_VALUE
static final int OBJECT_VALUE- See Also:
-
ELEMENT_VALUE
static final int ELEMENT_VALUE- See Also:
-
DOCUMENT_VALUE
static final int DOCUMENT_VALUE- See Also:
-
ATTRIBUTE_VALUE
static final int ATTRIBUTE_VALUE- See Also:
-
COMMENT_VALUE
static final int COMMENT_VALUE- See Also:
-
PROCESSING_INSTRUCTION_VALUE
static final int PROCESSING_INSTRUCTION_VALUE- See Also:
-
-
Method Details
-
isEmpty
boolean isEmpty()True is this sequence contains no elements. -
size
int size()See java.util.List. -
get
See java.util.List. -
getInt
int getInt(int arg1) -
set
See java.util.List. -
fill
-
elements
Enumeration<E> elements()
-