Class CoordinateArrayFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int n  
      (package private) Coordinate[] pts  
    • Constructor Summary

      Constructors 
      Constructor Description
      CoordinateArrayFilter​(int size)
      Constructs a CoordinateArrayFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(Coordinate coord)
      Performs an operation with the coord.
      Coordinate[] getCoordinates()
      Returns the gathered Coordinates.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoordinateArrayFilter

        public CoordinateArrayFilter​(int size)
        Constructs a CoordinateArrayFilter.
        Parameters:
        size - the number of points that the CoordinateArrayFilter will collect
    • Method Detail

      • getCoordinates

        public Coordinate[] getCoordinates()
        Returns the gathered Coordinates.
        Returns:
        the Coordinates collected by this CoordinateArrayFilter
      • filter

        public void filter​(Coordinate coord)
        Description copied from interface: CoordinateFilter
        Performs an operation with the coord. There is no guarantee that the coordinate is the actual object stored in the target geometry.
        Specified by:
        filter in interface CoordinateFilter
        Parameters:
        coord - a Coordinate to which the filter is applied.