Class CompoundCoordinates<C1 extends Coordinates<?>,​C2 extends Coordinates<?>>

  • All Implemented Interfaces:
    Serializable, Cloneable, javolution.lang.Immutable, javolution.lang.Realtime, javolution.lang.ValueType, javolution.xml.XMLSerializable, org.opengis.spatialschema.geometry.DirectPosition, org.opengis.spatialschema.geometry.geometry.Position, org.opengis.util.Cloneable

    public final class CompoundCoordinates<C1 extends Coordinates<?>,​C2 extends Coordinates<?>>
    extends Coordinates<CompoundCRS<C1,​C2>>
    This class represents a coordinates made up by combining two coordinates objects together.
    See Also:
    Serialized Form
    • Method Detail

      • valueOf

        public static <T1 extends Coordinates<?>,​T2 extends Coordinates<?>> CompoundCoordinates<T1,​T2> valueOf​(T1 first,
                                                                                                                           T2 next)
        Returns a compound coordinates made up of the specified coordinates.
        Parameters:
        first - the first coordinates.
        next - the next coordinates.
      • getFirst

        public C1 getFirst()
        Returns the first coordinates.
        Returns:
        the first coordinates.
      • getNext

        public C2 getNext()
        Returns the next coordinates.
        Returns:
        the next coordinates.
      • copy

        public CompoundCoordinates<?,​?> copy()
        Description copied from class: Coordinates
        Returns a copy of these coordinates allocated by the calling thread (possibly on the stack).
        Specified by:
        copy in interface javolution.lang.ValueType
        Specified by:
        copy in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,​C2 extends Coordinates<?>>>
        Returns:
        an identical and independant copy of these coordinates .