public class

None

extends Object
implements Option<T>
java.lang.Object
   ↳ com.atlassian.confluence.cache.option.None<T>

Class Overview

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 equals(Object) and hashCode() methods behave as expected for objects that have propagated over the distributed cache.

Summary

Fields
public static final None<?> INSTANCE
Public Constructors
None()
Public Methods
boolean exists()
T getOrElse(T otherwise)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.cache.option.Option

Fields

public static final None<?> INSTANCE

Public Constructors

public None ()

Public Methods

public boolean exists ()

public T getOrElse (T otherwise)