Class SequenceVector.Floats

All Implemented Interfaces:
Serializable, Iterable<Number>, Collection<Number>, List<Number>, RandomAccess
Enclosing class:
SequenceVector

static final class SequenceVector.Floats extends SequenceVector.Doubles
A vector which is a sequence of increasing or decreasing float values.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • Floats

      Floats(Class<? extends Number> type, Number first, Number increment, int length)
      Creates a sequence of numbers in a given range of values using the given increment.
  • Method Details

    • createSubSampling

      Vector createSubSampling(int offset, int step, int n)
      Creates a new sequence for a subrange of this vector.
      Overrides:
      createSubSampling in class SequenceVector.Doubles
    • get

      public Number get(int index)
      Computes the value at the given index.
      Specified by:
      get in interface List<Number>
      Overrides:
      get in class SequenceVector.Doubles
      Parameters:
      index - the index in the [0 … size-1] range.
      Returns:
      the value at the given index (may be null).
    • stringValue

      public String stringValue(int index)
      Returns the string representation of the value at the given index.
      Overrides:
      stringValue in class SequenceVector.Doubles
      Parameters:
      index - the index in the [0 … size-1] range.
      Returns:
      a string representation of the value at the given index (may be null).
      See Also: