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 void
clear()
protected Object
clone()
boolean
containsKey(Object o)
boolean
containsValue(Object o)
Set<Map.Entry<Right,V>>
entrySet()
boolean
equals(Object o)
V
get(Object o)
int
hashCode()
boolean
isEmpty()
Set<Right>
keySet()
V
put(Right right, V value)
void
putAll(Map<? extends Right,? extends V> map)
V
remove(Object o)
int
size()
String
toString()
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:
clone
in classAbstractMap<Right,V>
- Throws:
CloneNotSupportedException
-
containsKey
public boolean containsKey(Object o)
- Specified by:
containsKey
in interfaceMap<Right,V>
- Overrides:
containsKey
in classAbstractMap<Right,V>
-
containsValue
public boolean containsValue(Object o)
- Specified by:
containsValue
in interfaceMap<Right,V>
- Overrides:
containsValue
in 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:
toString
in classAbstractMap<Right,V>
-
values
public Collection<V> values()
-
-