Class PackedCoordinateSequence.Float

java.lang.Object
org.apache.sis.internal.feature.jts.PackedCoordinateSequence
org.apache.sis.internal.feature.jts.PackedCoordinateSequence.Float
All Implemented Interfaces:
Serializable, Cloneable, org.locationtech.jts.geom.CoordinateSequence
Enclosing class:
PackedCoordinateSequence

static final class PackedCoordinateSequence.Float extends PackedCoordinateSequence
Coordinate sequence storing values in a packed float[] array.
Since:
1.2
Version:
1.2
  • Field Details

    • serialVersionUID

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

      private final float[] coordinates
      The packed coordinates.
  • Constructor Details

    • Float

      private Float(PackedCoordinateSequence.Float original)
      Creates a new sequence initialized to a copy of the given sequence.
    • Float

      Float(float[] array, int length)
      Creates a new coordinate sequence with given values.
    • Float

      Float(int size, int dimension, int measures)
      Creates a new coordinate sequence for the given number of tuples.
  • Method Details

    • size

      public int size()
      Returns the number of coordinate tuples in this sequence.
    • coordinate

      double coordinate(int index)
      Returns the coordinate value at the given index in the packed array.
      Specified by:
      coordinate in class PackedCoordinateSequence
      Parameters:
      index - index in the packed array.
      Returns:
      coordinate value at the given index.
    • setOrdinate

      public void setOrdinate(int index, int dim, double value)
      Sets a coordinate value for the coordinate tuple at the given index.
    • setCoordinates

      void setCoordinates(org.locationtech.jts.geom.Coordinate[] values)
      Sets all coordinates in this sequence.
      Specified by:
      setCoordinates in class PackedCoordinateSequence
    • setCoordinates

      void setCoordinates(org.locationtech.jts.geom.CoordinateSequence values)
      Sets all coordinates in this sequence.
      Overrides:
      setCoordinates in class PackedCoordinateSequence
    • expandEnvelope

      public org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope envelope)
      Expands the given envelope to include the (x,y) coordinates of this sequence.
    • copy

      public org.locationtech.jts.geom.CoordinateSequence copy()
      Returns a copy of this sequence.
    • hashCode

      public int hashCode()
      Returns a hash code value for this sequence.
      Overrides:
      hashCode in class PackedCoordinateSequence
    • equals

      public boolean equals(Object obj)
      Compares the given object with this sequence for equality.
      Overrides:
      equals in class PackedCoordinateSequence