Spring Data Document

org.springframework.data.mongodb.core.geo
Interface Shape

All Known Implementing Classes:
Box, Circle, Polygon

public interface Shape

Common interface for all shapes. Allows building MongoDB representations of them.

Author:
Oliver Gierke

Method Summary
 List<? extends Object> asList()
          Returns the Shape as a list of usually Double or Lists of Doubles.
 String getCommand()
          Returns the command to be used to create the $within criterion.
 

Method Detail

asList

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

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

Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.