public class CacheObject<T> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static CacheObject |
NULL_INSTANCE
A CacheObject<T> whose value is null.
|
Constructor and Description |
---|
CacheObject(T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
T |
getValue() |
int |
hashCode() |
boolean |
hasValue() |
boolean |
isNull() |
static <T> CacheObject<T> |
NULL()
Returns a CacheObject<T> whose value is null.
|
String |
toString() |
static <T> CacheObject<T> |
wrap(T object)
Wraps the given value in a CacheObject.
|
public static final CacheObject NULL_INSTANCE
NULL()
to avoid generic-related warnings.public CacheObject(T value)
public static <T> CacheObject<T> NULL()
public static <T> CacheObject<T> wrap(T object)
object
- a <T>public T getValue()
public boolean hasValue()
public boolean isNull()
Copyright © 2002-2015 Atlassian. All Rights Reserved.