Package com.cedarpolicy.value
Class CedarList
java.lang.Object
com.cedarpolicy.value.Value
com.cedarpolicy.value.CedarList
Lists in the Cedar language.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends Value> c) booleanaddAll(Collection<? extends Value> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanEquals.get(int index) inthashCode()Hash.intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) To Cedar expr that can be used in a Cedar policy.toString()toString.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
CedarList
Create a Cedar list by copy.- Parameters:
source- list to copy from
-
CedarList
public CedarList()Create an empty Cedar list.
-
-
Method Details
-
equals
Equals. -
hashCode
public int hashCode()Hash. -
toString
toString. -
toCedarExpr
To Cedar expr that can be used in a Cedar policy.- Specified by:
toCedarExprin classValue- Returns:
- Cedar source code for the value.
-
add
- Specified by:
addin interfaceCollection<Value>- Specified by:
addin interfaceList<Value>- Throws:
NullPointerException
-
add
- Specified by:
addin interfaceList<Value>- Throws:
NullPointerException
-
addAll
- Specified by:
addAllin interfaceCollection<Value>- Specified by:
addAllin interfaceList<Value>- Throws:
NullPointerException
-
addAll
- Specified by:
addAllin interfaceList<Value>- Throws:
NullPointerException
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<Value>- Specified by:
containsAllin interfaceList<Value>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Value>
-
listIterator
- Specified by:
listIteratorin interfaceList<Value>
-
listIterator
- Specified by:
listIteratorin interfaceList<Value>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
- Specified by:
setin interfaceList<Value>- Throws:
NullPointerException
-
subList
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] a)
-