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 intATTRIBUTE_VALUEstatic intBOOLEAN_VALUEstatic intCDATA_VALUEstatic intCHAR_VALUEstatic intCOMMENT_VALUEstatic intDOCUMENT_VALUEstatic intDOUBLE_VALUEReturn code used to indicate next element is 64-bit double.static intELEMENT_VALUEstatic intEOF_VALUEReturn code used to indicate a position is at end of the sequence.static ObjecteofValueSpecial magic end-of-file marker.static intFLOAT_VALUEReturn code used to indicate next element is 32-bit float.static intINT_S16_VALUEstatic intINT_S32_VALUEstatic intINT_S64_VALUEstatic intINT_S8_VALUEstatic intINT_U16_VALUEstatic intINT_U32_VALUEstatic intINT_U64_VALUEstatic intINT_U8_VALUEstatic intOBJECT_VALUEstatic intPRIM_VALUEstatic intPROCESSING_INSTRUCTION_VALUEstatic intTEXT_BYTE_VALUEA byte in an encoded string.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Enumeration<E>elements()voidfill(E value)Eget(int index)See java.util.List.intgetInt(int arg1)booleanisEmpty()True is this sequence contains no elements.Eset(int index, E value)See java.util.List.intsize()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()
-
-