Package de.xima.fc.common.geometry
Interface ICardinalDirection2DMapLong
-
- All Superinterfaces:
ICardinalDirection2DMap<Long>
,Map<ECardinalDirection2D,Long>
,Serializable
public interface ICardinalDirection2DMapLong extends ICardinalDirection2DMap<Long>
A map that associates long 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 long
eastLong()
Gets the value associated with the east cardinal direction, as a long.long
getLong(Object key)
Same asMap.get(Object)
, but returns a primitive long.long
northLong()
Gets the value associated with the north cardinal direction, as a long.long
southLong()
Gets the value associated with the south cardinal direction, as a long.long
westLong()
Gets the value associated with the west cardinal direction, as a long.-
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
-
eastLong
long eastLong()
Gets the value associated with the east cardinal direction, as a long.- Returns:
- The value associated with the east direction.
-
getLong
long getLong(Object key)
Same asMap.get(Object)
, but returns a primitive long.- Parameters:
key
- The key for which to retrieve the value.- Returns:
- The value associated with the specified key, as a long.
-
northLong
long northLong()
Gets the value associated with the north cardinal direction, as a long.- Returns:
- The value associated with the north direction.
-
southLong
long southLong()
Gets the value associated with the south cardinal direction, as a long.- Returns:
- The value associated with the south direction.
-
westLong
long westLong()
Gets the value associated with the west cardinal direction, as a long.- Returns:
- The value associated with the west direction.
-
-