Interface Coordinate
- All Superinterfaces:
Comparable<Coordinate>, Coordinate, OsidPrimitive, OsidPrimitive, Serializable
A coordinate represents a position.
-
Method Summary
Modifier and TypeMethodDescriptionGets theTypeof thisCoordinatewhich indicates the format of the coordinate data.longGets the number of dimensions available in this coordinate.Gets the values of this coordinate.Methods inherited from interface Coordinate
compareTo, equals, hashCode, isCloser, isExclusive, isFarther, isInclusive, isLarger, isSmallerModifier and TypeMethodDescriptionintcompareTo(Coordinate coordinate) Compares this coordinate with the specifiedCoordinateto determine the natural order.booleanDetermines if the givenCoordinateis equal to this one.inthashCode()Returns a hash code value for thisCoordinate.booleanisCloser(Coordinate one, Coordinate another) Tests if oneCoordinateis closer to origin than another to thisCoordinate.booleanisExclusive(Coordinate coordinate) Tests if thisCoordinate, as specified by its uncertainty, does not overlap the givenCoordinate.booleanisFarther(Coordinate one, Coordinate another) Tests if oneCoordinateis farther from origin than another from thisCoordinate.booleanisInclusive(Coordinate coordinate) Tests if thisCoordinate, as specified by its uncertainty, completely includes the givenCoordinateranged by its uncertainty.booleanisLarger(Coordinate coordinate) Tests if thisCoordinateis greater in area than the givenCoordinate.booleanisSmaller(Coordinate coordinate) Tests if thisCoordinateis less in area than the givenCoordinate.Methods inherited from interface OsidPrimitive
toString
-
Method Details
-
getCoordinateType
Type getCoordinateType()Gets theTypeof thisCoordinatewhich indicates the format of the coordinate data.- Returns:
- the coordinate type
- Compliance:
mandatory- This method must be implemented.
-
getDimensions
long getDimensions()Gets the number of dimensions available in this coordinate.- Returns:
- the number of dimensions
- Compliance:
mandatory- This method must be implemented.
-
getValues
BigDecimal[] getValues()Gets the values of this coordinate. The size of the returned array equalsgetDimensions().- Returns:
- the coordinate values
- Compliance:
mandatory- This method must be implemented.
-