Module org.tquadrat.foundation.util
Interface Entities.EntityMap
- All Known Implementing Classes:
Entities.PrimitiveEntityMap
- Enclosing class:
Entities
@ClassVersion(sourceVersion="$Id: Entities.java 1060 2023-09-24 19:21:40Z tquadrat $")
private static interface Entities.EntityMap
Local interface for the data structure that is used to store the
entity mappings.
- Authors:
- Alexander Day Chaffee (alex@purpletech.com), Gary Gregory (ggregory@seagullsw.com), Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: Entities.java 1060 2023-09-24 19:21:40Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.util.internal.Entities.EntityMap"
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an entry to this entity map.
If the value is negative, only the name to value relation will be stored.list()
Returns the entities.name
(int value) Returns the name of the entity identified by the specified value.Returns the value of the entity identified by the specified name.
-
Method Details
-
add
Adds an entry to this entity map.
If the value is negative, only the name to value relation will be stored.- Parameters:
name
- The entity name.value
- The entity value (the Unicode code).
-
list
Returns the entities.- Returns:
- The entities.
-
name
Returns the name of the entity identified by the specified value.- Parameters:
value
- The value to locate.- Returns:
- An instance of
Optional
that holds the entity name that is associated with the specified value.
-
value
Returns the value of the entity identified by the specified name.- Parameters:
name
- The name of the entity to locate- Returns:
- An instance of
Optional
that holds the entity value associated with the specified name.
-