com.atlassian.confluence.cache.option
Class Some<T>
java.lang.Object
com.atlassian.confluence.cache.option.Some<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Option<T>, Serializable
public class Some<T>
- extends Object
- implements Option<T>
A cached option for a value. This is used when the factory finds a value and needs to cache it.
- See Also:
- Serialized Form
Constructor Summary |
Some(T object)
|
Some
public Some(T object)
exists
public boolean exists()
- Specified by:
exists
in interface Option<T>
getOrElse
public T getOrElse(T otherwise)
- Specified by:
getOrElse
in interface Option<T>
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2003-2012 Atlassian. All Rights Reserved.