Class LongArray

All Implemented Interfaces:
SortListener, Serializable

public final class LongArray extends PrimitiveArray
Similar to IntegerArray but for longs.
See Also:
  • Constructor Details

    • LongArray

      public LongArray()
    • LongArray

      public LongArray(int length)
    • LongArray

      public LongArray(int length, long value)
  • Method Details

    • clone

      public Object clone()
      Description copied from class: java.lang.Object
      Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.

      Classes which wish to support cloning must specify that they implement the Cloneable interface, since the native implementation checks for this.

      Overrides:
      clone in class Object
      Returns:
      Object a shallow copy of this object.
    • toArray

      public long[] toArray()
    • add

      public void add(long value)
    • get

      public long get(int index)
    • put

      public void put(int index, long value)
    • add

      public void add(int index, long value)
    • putAll

      public void putAll(long value)
    • memoryUsage

      public int memoryUsage()