Package org.xwiki.security.authorization
Class RightMap<V>
- java.lang.Object
-
- java.util.AbstractMap<Right,V>
-
- org.xwiki.security.authorization.RightMap<V>
-
- Type Parameters:
V- the value type of this map
- All Implemented Interfaces:
Serializable,Cloneable,Map<Right,V>
public class RightMap<V> extends AbstractMap<Right,V> implements Serializable, Cloneable
Optimized map implementation with a key of type Right.- Since:
- 4.0M2
- Version:
- $Id: 6a5c8d85313f35b9839653215053d972cf8d6c60 $
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description RightMap()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected Objectclone()booleancontainsKey(Object o)booleancontainsValue(Object o)Set<Map.Entry<Right,V>>entrySet()booleanequals(Object o)Vget(Object o)inthashCode()booleanisEmpty()Set<Right>keySet()Vput(Right right, V value)voidputAll(Map<? extends Right,? extends V> map)Vremove(Object o)intsize()StringtoString()Collection<V>values()-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
clear
public void clear()
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clonein classAbstractMap<Right,V>- Throws:
CloneNotSupportedException
-
containsKey
public boolean containsKey(Object o)
- Specified by:
containsKeyin interfaceMap<Right,V>- Overrides:
containsKeyin classAbstractMap<Right,V>
-
containsValue
public boolean containsValue(Object o)
- Specified by:
containsValuein interfaceMap<Right,V>- Overrides:
containsValuein classAbstractMap<Right,V>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<Right,V>
-
values
public Collection<V> values()
-
-