Package org.wildfly.security.authz
Class SimpleAttributesEntry
- All Implemented Interfaces:
Iterable<String>,Collection<String>,List<String>,Attributes.Entry
An implementation of
Attributes.Entry which can be used by implementations of Attributes. Operations
are implemented in terms of methods on Attributes which do not rely upon entries.- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionSimpleAttributesEntry(Attributes attributes, String key) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclear()booleanget(int index) getKey()Get the mapping key.intbooleanisEmpty()intremove(int index) booleanvoidremoveRange(int fromIndex, int toIndex) Remove all the values for the given key between thefromindex (inclusive) and thetoindex (exclusive).intsize()Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, iterator, listIterator, listIterator, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.security.authz.Attributes.Entry
spliteratorMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addAll, containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, replaceAll, retainAll, sort, subList, toArray, toArray
-
Constructor Details
-
SimpleAttributesEntry
Construct a new instance.- Parameters:
attributes- the backing attributes collectionkey- the key of this entry
-
-
Method Details
-
getKey
Description copied from interface:Attributes.EntryGet the mapping key.- Specified by:
getKeyin interfaceAttributes.Entry- Returns:
- the mapping key
-
removeRange
public void removeRange(int fromIndex, int toIndex) Description copied from interface:Attributes.EntryRemove all the values for the given key between thefromindex (inclusive) and thetoindex (exclusive).- Specified by:
removeRangein interfaceAttributes.Entry- Overrides:
removeRangein classAbstractList<String>- Parameters:
fromIndex- the start index (inclusive)toIndex- the end index (exclusive)
-
get
-
set
-
add
-
remove
-
add
- Specified by:
addin interfaceCollection<String>- Specified by:
addin interfaceList<String>- Overrides:
addin classAbstractList<String>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<String>- Specified by:
clearin interfaceList<String>- Overrides:
clearin classAbstractList<String>
-
remove
- Specified by:
removein interfaceCollection<String>- Specified by:
removein interfaceList<String>- Overrides:
removein classAbstractCollection<String>
-
contains
- Specified by:
containsin interfaceCollection<String>- Specified by:
containsin interfaceList<String>- Overrides:
containsin classAbstractCollection<String>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<String>- Specified by:
isEmptyin interfaceList<String>- Overrides:
isEmptyin classAbstractCollection<String>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<String>- Overrides:
lastIndexOfin classAbstractList<String>
-
size
public int size()- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceList<String>- Specified by:
sizein classAbstractCollection<String>
-