Interface ICardinalDirection2DMapDouble
- All Superinterfaces:
ICardinalDirection2DMap<Double>, Map<ECardinalDirection2D, Double>, Serializable
A map that associates double values with the four cardinal directions (north, east, south, west) in a 2D space. This
class provides a convenient way to store and retrieve values based on cardinal directions.
- Since:
- 8.4.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the value associated with the east cardinal direction, as a double.doubleSame asMap.get(Object), but returns a primitive double.doubleGets the value associated with the north cardinal direction, as a double.doubleGets the value associated with the south cardinal direction, as a double.doubleGets the value associated with the west cardinal direction, as a double.Methods inherited from interface ICardinalDirection2DMap
east, north, south, westMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
eastDouble
double eastDouble()Gets the value associated with the east cardinal direction, as a double.- Returns:
- The value associated with the east direction.
-
getDouble
Same asMap.get(Object), but returns a primitive double.- Parameters:
key- The key for which to retrieve the value.- Returns:
- The value associated with the specified key, as a double.
-
northDouble
double northDouble()Gets the value associated with the north cardinal direction, as a double.- Returns:
- The value associated with the north direction.
-
southDouble
double southDouble()Gets the value associated with the south cardinal direction, as a double.- Returns:
- The value associated with the south direction.
-
westDouble
double westDouble()Gets the value associated with the west cardinal direction, as a double.- Returns:
- The value associated with the west direction.
-