public interface Role
Modifier and Type | Field and Description |
---|---|
static Map<Integer,Role> |
byIndexMap |
static Map<String,Role> |
byValueMap |
Modifier and Type | Method and Description |
---|---|
static Role |
assignPrivateRole(int indexValue,
String name)
Assign a new role to the private id space.
|
Integer |
getIndex() |
String |
getName() |
default void |
init(Integer index,
String value)
Initialize the mapping of role index and text values.
|
static Role |
lookupByIndex(int value)
Lookup a role by the provided index value.
|
static Role |
lookupByName(String name)
Lookup a role by the provided human-readable name.
|
Integer getIndex()
String getName()
default void init(Integer index, String value)
index
- the index positionvalue
- the human-readable valuestatic Role assignPrivateRole(int indexValue, String name)
indexValue
- the index value to usename
- the human-readable namestatic Role lookupByIndex(int value)
value
- the index value to lookup the role fornull
if no matching role was not found.Copyright © 2020 National Institute of Standards and Technology. All rights reserved.