Class IndexedInstructionCollection<T extends Instruction>
java.lang.Object
net.covers1624.coffeegrinder.bytecode.InstructionSlot<T>
net.covers1624.coffeegrinder.bytecode.InstructionCollection<T>
net.covers1624.coffeegrinder.bytecode.IndexedInstructionCollection<T>
- All Implemented Interfaces:
Iterable<T>,net.covers1624.quack.collection.FastStream<T>
An Indexed
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.covers1624.coffeegrinder.bytecode.InstructionCollection
InstructionCollection.CollectionSlotNested classes/interfaces inherited from interface net.covers1624.quack.collection.FastStream
net.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> -
Field Summary
Fields inherited from interface net.covers1624.quack.collection.FastStream
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd anInstructionto the end of this collection.voidAdds multipleInstructions to the end of this collection.get(int index) voidSets theInstructions contained within this slot.Methods inherited from class net.covers1624.coffeegrinder.bytecode.InstructionCollection
add, addAllFirst, addFirst, checkInvariant, clear, count, getValueOrNull, isEmpty, iterator, secondToLastOrDefault, set, sizeMethods inherited from class net.covers1624.coffeegrinder.bytecode.InstructionSlot
getMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.covers1624.quack.collection.FastStream
allMatch, anyMatch, concat, distinct, doubleSum, filter, filterNot, findFirst, findLast, first, firstOrDefault, firstOrDefault, flatMap, fold, fold, groupBy, groupBy, 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, 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, toSetMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IndexedInstructionCollection
-
-
Method Details
-
setValues
Sets theInstructions contained within this slot.This may only be called once.
- Parameters:
values- TheInstructionvalues.
-
get
-
add
Description copied from class:InstructionCollectionAdd anInstructionto the end of this collection.- Overrides:
addin classInstructionCollection<T extends Instruction>- Parameters:
value- TheInstruction.
-
addAll
Description copied from class:InstructionCollectionAdds multipleInstructions to the end of this collection.- Overrides:
addAllin classInstructionCollection<T extends Instruction>- Parameters:
values- TheInstructions.
-