com.vividsolutions.jts.geom
Class DefaultCoordinateSequenceFactory

java.lang.Object
  extended bycom.vividsolutions.jts.geom.DefaultCoordinateSequenceFactory
All Implemented Interfaces:
CoordinateSequenceFactory

public class DefaultCoordinateSequenceFactory
extends java.lang.Object
implements CoordinateSequenceFactory

Creates CoordinateSequences internally represented as an array of x's and an array of y's.

Version:
1.4.0

Method Summary
 CoordinateSequence create(Coordinate[] coordinates)
          Returns a DefaultCoordinateSequence based on the given array (the array is not copied).
static DefaultCoordinateSequenceFactory instance()
          Returns the singleton instance of DefaultCoordinateSequenceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static DefaultCoordinateSequenceFactory instance()
Returns the singleton instance of DefaultCoordinateSequenceFactory


create

public CoordinateSequence create(Coordinate[] coordinates)
Returns a DefaultCoordinateSequence based on the given array (the array is not copied).

Specified by:
create in interface CoordinateSequenceFactory
Parameters:
coordinates - the coordinates, which may not be null nor contain null elements