|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmpp.util.ValueWrapper<V>
@Immutable public class ValueWrapper<V>
A wrapper implementation for cached values, suitable for Map based
caches where a significant portion of keys matches the corresponding value
exactly.
| Nested Class Summary | |
|---|---|
static class |
ValueWrapper.Representation
Indication of how the key of this cache entry represents the cache value. |
| Constructor Summary | |
|---|---|
ValueWrapper(V value)
Wraps a value while using the USE_VALUE representation. |
|
ValueWrapper(ValueWrapper.Representation representation)
Constructs an empty wrapper. |
|
| Method Summary | |
|---|---|
ValueWrapper.Representation |
getRepresentation()
|
V |
getValue()
Returns the wrapped value, or null if the representation used in this instance is not USE_VALUE; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueWrapper(ValueWrapper.Representation representation)
IllegalArgumentException is thrown if the argument is
USE_VALUE.
representation - Key representation indicator.public ValueWrapper(V value)
value - The value that is wrapped.| Method Detail |
|---|
public V getValue()
public ValueWrapper.Representation getRepresentation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||