Interface IVector<T extends @Nullable Object>

All Superinterfaces:
Iterable<T>
All Known Implementing Classes:
SimpleVector, SparseVector, TwoLevelVector

public interface IVector<T extends @Nullable Object> extends Iterable<T>
simple interface for a vector.

TODO: get rid of this and use java.util.collection.RandomAccess

  • Method Details

    • get

      @Nullable T get(int x)
      Parameters:
      x - an index value
      Returns:
      the stored data at the given index, or null if the index is unmapped.
    • set

      void set(int x, T value)
      TODO: this can be optimized
      See Also:
    • performVerboseAction

      void performVerboseAction()
      See Also:
    • getMaxIndex

      int getMaxIndex()
      Returns:
      max i s.t get(i) != null