Package de.xima.fc.common.geometry
Interface ICardinalDirection2DMapInt
-
- All Superinterfaces:
ICardinalDirection2DMap<Integer>
,Map<ECardinalDirection2D,Integer>
,Serializable
public interface ICardinalDirection2DMapInt extends ICardinalDirection2DMap<Integer>
A map that associates int 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
eastInt()
Gets the value associated with the east cardinal direction, as an integer.int
getInt(Object key)
Same asMap.get(Object)
, but returns a primitive integerint
northInt()
Gets the value associated with the north cardinal direction, as an integer.int
southInt()
Gets the value associated with the south cardinal direction, as an integer.int
westInt()
Gets the value associated with the west cardinal direction, as an integer.-
Methods inherited from interface de.xima.fc.common.geometry.ICardinalDirection2DMap
east, north, south, west
-
Methods inherited from interface java.util.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 Detail
-
eastInt
int eastInt()
Gets the value associated with the east cardinal direction, as an integer.- Returns:
- The value associated with the east direction.
-
getInt
int getInt(Object key)
Same asMap.get(Object)
, but returns a primitive integer- Parameters:
key
- The key for which to retrieve the value.- Returns:
- The value associated with the specified key, as an integer.
-
northInt
int northInt()
Gets the value associated with the north cardinal direction, as an integer.- Returns:
- The value associated with the north direction.
-
southInt
int southInt()
Gets the value associated with the south cardinal direction, as an integer.- Returns:
- The value associated with the south direction.
-
westInt
int westInt()
Gets the value associated with the west cardinal direction, as an integer.- Returns:
- The value associated with the west direction.
-
-