Package com.cedarpolicy.value
Class CedarMap
java.lang.Object
com.cedarpolicy.value.Value
com.cedarpolicy.value.CedarMap
Represents a Cedar Map value. Maps support mapping strings to arbitrary values.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CedarMap
Create a Cedar map by copy.- Parameters:
source- map to copy from
-
CedarMap
public CedarMap()Create an empty Cedar map.
-
-
Method Details
-
equals
Equals. -
hashCode
public int hashCode()Hash. -
toCedarExpr
To Cedar expr that can be used in a Cedar policy.- Specified by:
toCedarExprin classValue- Returns:
- Cedar source code for the value.
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Value>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Value>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
- Specified by:
putin interfaceMap<String,Value> - Throws:
NullPointerException
-
putAll
-
remove
-
size
public int size() -
values
-