org.springframework.data.mongodb.core.geo

Class Sphere

    • Constructor Detail

      • Sphere

        public Sphere(Point center,
                      Distance radius)
        Creates a Sphere around the given center Point with the given radius.
        Parameters:
        center - must not be null.
        radius - must not be null.
      • Sphere

        public Sphere(Point center,
                      double radius)
        Creates a Sphere around the given center Point with the given radius.
        Parameters:
        center -
        radius -
      • Sphere

        public Sphere(Circle circle)
        Creates a Sphere from the given Circle.
        Parameters:
        circle -
    • Method Detail

      • getCenter

        public Point getCenter()
        Returns the center of the Circle.
        Returns:
        will never be null.
      • getRadius

        public Distance getRadius()
        Returns the radius of the Circle.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • asList

        public List<? extends Object> asList()
        Returns the Shape as a list of usually Double or Lists of Doubles. Wildcard bound to allow implementations to return a more concrete element type.
        Returns:
      • getCommand

        public String getCommand()
        Returns the command to be used to create the $within criterion.
        Returns: