Class PackedCoordinateSequence.Double

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

static final class PackedCoordinateSequence.Double extends PackedCoordinateSequence
Coordinate sequence storing values in a packed double[] array.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.sis.internal.feature.jts.PackedCoordinateSequence

    PackedCoordinateSequence.Double, PackedCoordinateSequence.Float
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double[]
    The packed coordinates.
    private static final long
    For cross-version compatibility.

    Fields inherited from class org.apache.sis.internal.feature.jts.PackedCoordinateSequence

    dimension

    Fields inherited from interface org.locationtech.jts.geom.CoordinateSequence

    M, X, Y, Z
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    (package private)
    Double(double[] array, int length)
    Creates a new coordinate sequence with given values.
    (package private)
    Double(int size, int dimension, int measures)
    Creates a new coordinate sequence for the given number of tuples.
    private
    Creates a new sequence initialized to a copy of the given sequence.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) double
    coordinate(int index)
    Returns the coordinate value at the given index in the packed array.
    org.locationtech.jts.geom.CoordinateSequence
    Returns a copy of this sequence.
    boolean
    Compares the given object with this sequence for equality.
    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.
    int
    Returns a hash code value for this sequence.
    (package private) void
    setCoordinates(org.locationtech.jts.geom.Coordinate[] values)
    Sets all coordinates in this sequence.
    (package private) void
    setCoordinates(org.locationtech.jts.geom.CoordinateSequence values)
    Sets all coordinates in this sequence.
    void
    setOrdinate(int index, int dim, double value)
    Sets a coordinate value for the coordinate tuple at the given index.
    int
    Returns the number of coordinate tuples in this sequence.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.locationtech.jts.geom.CoordinateSequence

    createCoordinate
  • Field Details

    • serialVersionUID

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

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

    • Double

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

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

      Double(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