public class IndexedInstructionCollection<T extends Instruction> extends InstructionCollection<T>
InstructionCollection.
Once set, this collection has an immutable length and does not support, removing, adding, or inserting Instructions.
Created by covers1624 on 27/11/21.
InstructionCollection.CollectionSlotnet.covers1624.quack.collection.FastStream.Bucket<V>, net.covers1624.quack.collection.FastStream.Concatenated<T>, net.covers1624.quack.collection.FastStream.ConcatenatedN<T>, net.covers1624.quack.collection.FastStream.Distinct<T>, net.covers1624.quack.collection.FastStream.Filtered<T>, net.covers1624.quack.collection.FastStream.FlatMapped<T,R>, net.covers1624.quack.collection.FastStream.Group<K,V>, net.covers1624.quack.collection.FastStream.Grouped<T,K,V>, net.covers1624.quack.collection.FastStream.Internal, net.covers1624.quack.collection.FastStream.Mapped<T,R>, net.covers1624.quack.collection.FastStream.OfN<T>, net.covers1624.quack.collection.FastStream.OfSingle<T>, net.covers1624.quack.collection.FastStream.Partitioned<V>, net.covers1624.quack.collection.FastStream.Peeked<T>, net.covers1624.quack.collection.FastStream.Reversed<T>, net.covers1624.quack.collection.FastStream.Sliced<T>, net.covers1624.quack.collection.FastStream.Sorted<T>, net.covers1624.quack.collection.FastStream.TypeCheck<T,S>, net.covers1624.quack.collection.FastStream.Wrapped<T>, net.covers1624.quack.collection.FastStream.WrappedSpl<T>| Constructor and Description |
|---|
IndexedInstructionCollection(Instruction parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T value)
Add an
Instruction to the end of this collection. |
void |
addAll(java.lang.Iterable<? extends T> values)
Adds multiple
Instructions to the end of this collection. |
T |
get(int index) |
void |
setValues(java.lang.Iterable<T> values)
Sets the
Instructions contained within this slot. |
add, addAllFirst, addFirst, checkInvariant, clear, count, getValueOrNull, isEmpty, iterator, secondToLastOrDefault, set, sizegetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallMatch, anyMatch, concat, concat, concatMany, distinct, doubleSum, empty, filter, filterNot, findFirst, findLast, first, firstOrDefault, firstOrDefault, flatMap, fold, fold, groupBy, groupBy, infer, intSum, join, knownLength, knownLength, last, lastOrDefault, lastOrDefault, limit, longSum, map, maxBy, maxByDouble, maxByDoubleOrDefault, maxByDoubleOrDefault, maxByLong, maxByLongOrDefault, maxByLongOrDefault, maxByOrDefault, maxByOrDefault, minBy, minByDouble, minByDoubleOrDefault, minByDoubleOrDefault, minByLong, minByLongOrDefault, minByLongOrDefault, minByOrDefault, minByOrDefault, noneMatch, of, of, of, of, of, of, of, ofNullable, only, onlyOrDefault, onlyOrDefault, partition, peek, reversed, skip, sorted, sorted, toArray, toArray, toArray, toImmutableList, toImmutableList, toImmutableMap, toImmutableMap, toImmutableSet, toImmutableSet, toLinkedHashMap, toLinkedHashMap, toLinkedHashSet, toLinkedHashSet, toLinkedList, toLinkedList, toList, toList, toMap, toMap, toMap, toMap, toSet, toSetpublic IndexedInstructionCollection(Instruction parent)
public void setValues(java.lang.Iterable<T> values)
Instructions contained within this slot.
This may only be called once.
values - The Instruction values.public T get(int index)
public void add(T value)
InstructionCollectionInstruction to the end of this collection.add in class InstructionCollection<T extends Instruction>value - The Instruction.public void addAll(java.lang.Iterable<? extends T> values)
InstructionCollectionInstructions to the end of this collection.addAll in class InstructionCollection<T extends Instruction>values - The Instructions.