Class IndexedInstructionCollection<T extends Instruction>

All Implemented Interfaces:
Iterable<T>, net.covers1624.quack.collection.FastStream<T>

public class IndexedInstructionCollection<T extends Instruction> extends InstructionCollection<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.CollectionSlot

    Nested 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T value)
    Add an Instruction to the end of this collection.
    void
    addAll(Iterable<? extends T> values)
    Adds multiple Instructions to the end of this collection.
    get(int index)
     
    void
    setValues(Iterable<T> values)
    Sets the Instructions contained within this slot.

    Methods inherited from class net.covers1624.coffeegrinder.bytecode.InstructionCollection

    add, addAllFirst, addFirst, checkInvariant, clear, count, getValueOrNull, isEmpty, iterator, secondToLastOrDefault, set, size

    Methods inherited from class net.covers1624.coffeegrinder.bytecode.InstructionSlot

    get

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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, toSet

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator