java.lang.Object
org.springframework.data.mongodb.core.query.GeoCommand

public final class GeoCommand extends Object
Wrapper around a Shape to allow appropriate query rendering.
Since:
1.5
Author:
Thomas Darimont, Christoph Strobl
  • Constructor Details

    • GeoCommand

      public GeoCommand(Shape shape)
      Creates a new GeoCommand.
      Parameters:
      shape - must not be null.
  • Method Details

    • getShape

      public Shape getShape()
      Returns:
      the shape
    • getCommand

      public String getCommand()
      Returns:
      the command
    • hashCode

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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object