Class DoubleVector.Indirect

java.lang.Object
io.deephaven.vector.DoubleVector.Indirect
All Implemented Interfaces:
LongSizedDataStructure, DoubleVector, Vector<DoubleVector>, Serializable, Iterable<Double>
Direct Known Subclasses:
DoubleSubVector, DoubleVectorColumnWrapper, DoubleVectorSlice
Enclosing interface:
DoubleVector

public abstract static class DoubleVector.Indirect extends Object implements DoubleVector
Base class for all "indirect" DoubleVector implementations.
See Also:
  • Constructor Details

    • Indirect

      public Indirect()
  • Method Details

    • toArray

      public double[] toArray()
      Description copied from interface: Vector
      Get an array representation of the elements of this Vector. Callers must not mutate the result, as implementations may choose to return their backing array in some cases.
      Specified by:
      toArray in interface DoubleVector
      Specified by:
      toArray in interface Vector<DoubleVector>
      Returns:
      An array representation of the elements of this Vector that must not be mutated
    • copyToArray

      public double[] copyToArray()
      Description copied from interface: Vector
      Get an array representation of the elements of this Vector. Callers may freely mutate the result, as it is guaranteed to be freshly-allocated and belongs to the caller upon return.
      Specified by:
      copyToArray in interface DoubleVector
      Specified by:
      copyToArray in interface Vector<DoubleVector>
      Returns:
      An array representation of the elements of this Vector that may be freely mutated
    • getDirect

      public DoubleVector getDirect()
      Specified by:
      getDirect in interface DoubleVector
      Specified by:
      getDirect in interface Vector<DoubleVector>
      Returns:
      A version of this Vector that is flattened out to only reference memory
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • writeReplace

      protected final Object writeReplace()