|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cache.option.None<T>
T
- public class None<T>
A cached option for no value. This is used when the factory does not find the value to cache and
the missing value needs to be cached.
The readResolve()
method has been implemented to return the singleton instance so the
Object.equals(Object)
and Object.hashCode()
methods behave as expected for objects that have propagated
over the distributed cache.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.confluence.cache.option.Option |
---|
Option.Builder |
Field Summary | |
---|---|
static None<?> |
INSTANCE
|
Constructor Summary | |
---|---|
None()
|
Method Summary | |
---|---|
boolean |
exists()
|
T |
getOrElse(T otherwise)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final None<?> INSTANCE
Constructor Detail |
---|
public None()
Method Detail |
---|
public boolean exists()
exists
in interface Option<T>
public T getOrElse(T otherwise)
getOrElse
in interface Option<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |