Class Feature


  • public final class Feature
    extends java.lang.Object

    Simple class which wraps a Shape and associates it with a id for that shape.

    Since:
    4.0
    Version:
    4.0.1
    Author:
    Michael Grove
    • Constructor Summary

      Constructors 
      Constructor Description
      Feature​(long theId, org.locationtech.spatial4j.shape.Shape theShape)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Feature create​(long theId, org.locationtech.spatial4j.shape.Shape theShape)  
      boolean equals​(java.lang.Object theObj)
      long getId()
      Return the identifer of this shape.
      org.locationtech.spatial4j.shape.Shape getShape()
      Return the shape of this feature
      int hashCode()
      static java.util.function.Function<Feature,​org.locationtech.spatial4j.shape.Point> point()  
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Feature

        public Feature​(long theId,
                       org.locationtech.spatial4j.shape.Shape theShape)
    • Method Detail

      • point

        public static java.util.function.Function<Feature,​org.locationtech.spatial4j.shape.Point> point()
      • create

        public static Feature create​(long theId,
                                     org.locationtech.spatial4j.shape.Shape theShape)
      • getShape

        public org.locationtech.spatial4j.shape.Shape getShape()
        Return the shape of this feature
        Returns:
        the shape
      • getId

        public long getId()
        Return the identifer of this shape. This is the system identifier for this feature
        Returns:
        return the id
      • equals

        public boolean equals​(java.lang.Object theObj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object