com.atlassian.confluence.cache.option
Class Some<T>

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean exists()
           
 T getOrElse(T otherwise)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Some

public Some(T object)
Method Detail

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.