Package org.locationtech.jts.geom
Class DefaultCoordinateSequenceFactory
- java.lang.Object
-
- org.locationtech.jts.geom.DefaultCoordinateSequenceFactory
-
- All Implemented Interfaces:
java.io.Serializable
,CoordinateSequenceFactory
public class DefaultCoordinateSequenceFactory extends java.lang.Object implements CoordinateSequenceFactory, java.io.Serializable
Deprecated.no longer usedCreates CoordinateSequences represented as an array ofCoordinate
s.- Version:
- 1.7
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static DefaultCoordinateSequenceFactory
instanceObject
Deprecated.private static long
serialVersionUID
Deprecated.
-
Constructor Summary
Constructors Constructor Description DefaultCoordinateSequenceFactory()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CoordinateSequence
create(int size, int dimension)
Deprecated.Creates aCoordinateSequence
of the specified size and dimension.CoordinateSequence
create(Coordinate[] coordinates)
Deprecated.Returns a DefaultCoordinateSequence based on the given array (the array is not copied).CoordinateSequence
create(CoordinateSequence coordSeq)
Deprecated.Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
.static DefaultCoordinateSequenceFactory
instance()
Deprecated.Returns the singleton instance of DefaultCoordinateSequenceFactoryprivate java.lang.Object
readResolve()
Deprecated.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.- See Also:
- Constant Field Values
-
instanceObject
private static final DefaultCoordinateSequenceFactory instanceObject
Deprecated.
-
-
Method Detail
-
readResolve
private java.lang.Object readResolve()
Deprecated.
-
instance
public static DefaultCoordinateSequenceFactory instance()
Deprecated.Returns the singleton instance of DefaultCoordinateSequenceFactory
-
create
public CoordinateSequence create(Coordinate[] coordinates)
Deprecated.Returns a DefaultCoordinateSequence based on the given array (the array is not copied).- Specified by:
create
in interfaceCoordinateSequenceFactory
- Parameters:
coordinates
- the coordinates, which may not be null nor contain null elements
-
create
public CoordinateSequence create(CoordinateSequence coordSeq)
Deprecated.Description copied from interface:CoordinateSequenceFactory
Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
. This method must handle null arguments by creating an empty sequence.- Specified by:
create
in interfaceCoordinateSequenceFactory
- Parameters:
coordSeq
- the coordinate sequence to copy- See Also:
CoordinateSequenceFactory.create(org.locationtech.jts.geom.CoordinateSequence)
-
create
public CoordinateSequence create(int size, int dimension)
Deprecated.Description copied from interface:CoordinateSequenceFactory
Creates aCoordinateSequence
of the specified size and dimension. For this to be useful, theCoordinateSequence
implementation must be mutable.If the requested dimension is larger than the CoordinateSequence implementation can provide, then a sequence of maximum possible dimension should be created. An error should not be thrown.
- Specified by:
create
in interfaceCoordinateSequenceFactory
- Parameters:
size
- the number of coordinates in the sequencedimension
- the dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored)- See Also:
CoordinateSequenceFactory.create(int, int)
-
-