org.xwiki.security.authorization
Class RightMap<V>

java.lang.Object
  extended by java.util.AbstractMap<Right,V>
      extended by 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: d4987285b8fd73492de92b7803062e831f12723f $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
RightMap()
          Default constructor.
 
Method Summary
 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
 

Constructor Detail

RightMap

public RightMap()
Default constructor.

Method Detail

clear

public void clear()
Specified by:
clear in interface Map<Right,V>
Overrides:
clear in class AbstractMap<Right,V>

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class AbstractMap<Right,V>
Throws:
CloneNotSupportedException

containsKey

public boolean containsKey(Object o)
Specified by:
containsKey in interface Map<Right,V>
Overrides:
containsKey in class AbstractMap<Right,V>

containsValue

public boolean containsValue(Object o)
Specified by:
containsValue in interface Map<Right,V>
Overrides:
containsValue in class AbstractMap<Right,V>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<Right,V>
Overrides:
equals in class AbstractMap<Right,V>

get

public V get(Object o)
Specified by:
get in interface Map<Right,V>
Overrides:
get in class AbstractMap<Right,V>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<Right,V>
Overrides:
hashCode in class AbstractMap<Right,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<Right,V>
Overrides:
isEmpty in class AbstractMap<Right,V>

put

public V put(Right right,
             V value)
Specified by:
put in interface Map<Right,V>
Overrides:
put in class AbstractMap<Right,V>

putAll

public void putAll(Map<? extends Right,? extends V> map)
Specified by:
putAll in interface Map<Right,V>
Overrides:
putAll in class AbstractMap<Right,V>

remove

public V remove(Object o)
Specified by:
remove in interface Map<Right,V>
Overrides:
remove in class AbstractMap<Right,V>

size

public int size()
Specified by:
size in interface Map<Right,V>
Overrides:
size in class AbstractMap<Right,V>

toString

public String toString()
Overrides:
toString in class AbstractMap<Right,V>

keySet

public Set<Right> keySet()
Specified by:
keySet in interface Map<Right,V>
Overrides:
keySet in class AbstractMap<Right,V>

values

public Collection<V> values()
Specified by:
values in interface Map<Right,V>
Overrides:
values in class AbstractMap<Right,V>

entrySet

public Set<Map.Entry<Right,V>> entrySet()
Specified by:
entrySet in interface Map<Right,V>
Specified by:
entrySet in class AbstractMap<Right,V>


Copyright © 2004–2015 XWiki. All rights reserved.