Class SnapshotArray<T>

java.lang.Object
zombie.entity.util.Array<T>
zombie.entity.util.SnapshotArray<T>
All Implemented Interfaces:
Iterable<T>

public class SnapshotArray<T> extends Array<T>
  • Constructor Details

    • SnapshotArray

      public SnapshotArray()
    • SnapshotArray

      public SnapshotArray(Array<T> array)
    • SnapshotArray

      public SnapshotArray(boolean ordered, int capacity, Class<?> arrayType)
    • SnapshotArray

      public SnapshotArray(boolean ordered, int capacity)
    • SnapshotArray

      public SnapshotArray(boolean ordered, T[] array, int startIndex, int count)
    • SnapshotArray

      public SnapshotArray(Class<?> arrayType)
    • SnapshotArray

      public SnapshotArray(int capacity)
    • SnapshotArray

      public SnapshotArray(T[] array)
  • Method Details

    • begin

      public T[] begin()
    • end

      public void end()
    • set

      public void set(int index, T value)
      Overrides:
      set in class Array<T>
    • insert

      public void insert(int index, T value)
      Overrides:
      insert in class Array<T>
    • insertRange

      public void insertRange(int index, int count)
      Overrides:
      insertRange in class Array<T>
    • swap

      public void swap(int first, int second)
      Overrides:
      swap in class Array<T>
    • removeValue

      public boolean removeValue(T value, boolean identity)
      Overrides:
      removeValue in class Array<T>
    • removeIndex

      public T removeIndex(int index)
      Overrides:
      removeIndex in class Array<T>
    • removeRange

      public void removeRange(int start, int end)
      Overrides:
      removeRange in class Array<T>
    • removeAll

      public boolean removeAll(Array<? extends T> array, boolean identity)
      Overrides:
      removeAll in class Array<T>
    • pop

      public T pop()
      Overrides:
      pop in class Array<T>
    • clear

      public void clear()
      Overrides:
      clear in class Array<T>
    • sort

      public void sort()
      Overrides:
      sort in class Array<T>
    • sort

      public void sort(Comparator<? super T> comparator)
      Overrides:
      sort in class Array<T>
    • reverse

      public void reverse()
      Overrides:
      reverse in class Array<T>
    • shuffle

      public void shuffle()
      Overrides:
      shuffle in class Array<T>
    • truncate

      public void truncate(int newSize)
      Overrides:
      truncate in class Array<T>
    • setSize

      public T[] setSize(int newSize)
      Overrides:
      setSize in class Array<T>
    • with

      public static <T> SnapshotArray<T> with(T... array)