@Immutable public class ValueWrapper<V> extends Object implements Serializable
Map based
caches where a significant portion of keys matches the corresponding value
exactly.| Modifier and Type | Class and Description |
|---|---|
static class |
ValueWrapper.Representation
Indication of how the key of this cache entry represents the cache value.
|
| Constructor and Description |
|---|
ValueWrapper(V value)
Wraps a value while using the USE_VALUE representation.
|
ValueWrapper(ValueWrapper.Representation representation)
Constructs an empty wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
ValueWrapper.Representation |
getRepresentation() |
V |
getValue()
Returns the wrapped value, or null if the representation used in
this instance is not USE_VALUE;
|
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.public V getValue()
public ValueWrapper.Representation getRepresentation()
Copyright © 2009–2017 Ignite Realtime. All rights reserved.