public class GridCacheReturn<V> extends Object implements Externalizable, GridOptimizedMarshallable
CLS_ID_FIELD_NAME| Constructor and Description |
|---|
GridCacheReturn()
Empty constructor.
|
GridCacheReturn(boolean success) |
GridCacheReturn(V v) |
GridCacheReturn(V v,
boolean success) |
| Modifier and Type | Method and Description |
|---|---|
Object |
ggClassId()
Implementation of this method should simply return value of
GG_CLASS_ID field. |
boolean |
hasValue()
Checks if value is not
null. |
void |
readExternal(ObjectInput in) |
GridCacheReturn<V> |
set(V v,
boolean success) |
GridCacheReturn<V> |
setIfNull(V v,
boolean success) |
boolean |
success() |
GridCacheReturn<V> |
success(boolean success) |
String |
toString() |
V |
value() |
GridCacheReturn<V> |
value(V v) |
GridCacheReturn<V> |
valueIfNull(V v) |
void |
writeExternal(ObjectOutput out) |
public GridCacheReturn()
public GridCacheReturn(V v)
v - Value.public GridCacheReturn(boolean success)
success - Success flag.public GridCacheReturn(V v, boolean success)
v - Value.success - Success flag.public boolean hasValue()
null.True if value is not null.public GridCacheReturn<V> value(V v)
v - Value.public GridCacheReturn<V> valueIfNull(V v)
v - Value.public boolean success()
public GridCacheReturn<V> set(@Nullable V v, boolean success)
v - Value to set.success - Success flag to set.public GridCacheReturn<V> setIfNull(V v, boolean success)
v - Value.success - Success flag.public GridCacheReturn<V> success(boolean success)
success - Success flag.public Object ggClassId()
GG_CLASS_ID field.ggClassId in interface GridOptimizedMarshallablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.