org.ops4j.peaberry.cache
Class ImmutableAttribute

java.lang.Object
  extended by org.ops4j.peaberry.cache.ImmutableAttribute
All Implemented Interfaces:
Map.Entry<String,Object>

public final class ImmutableAttribute
extends Object
implements Map.Entry<String,Object>

Snapshot of an entry from a service attribute map.

Author:
mcculls@gmail.com (Stuart McCulloch)

Constructor Summary
ImmutableAttribute(String key, Object value)
           
 
Method Summary
 boolean equals(Object rhs)
           
 String getKey()
           
 Object getValue()
           
 int hashCode()
           
 Object setValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableAttribute

public ImmutableAttribute(String key,
                          Object value)
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface Map.Entry<String,Object>

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry<String,Object>

setValue

public Object setValue(Object value)
Specified by:
setValue in interface Map.Entry<String,Object>

equals

public boolean equals(Object rhs)
Specified by:
equals in interface Map.Entry<String,Object>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<String,Object>
Overrides:
hashCode in class Object


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.