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

java.lang.Object
  extended by com.atlassian.confluence.cache.option.Some<T>
All Implemented Interfaces:
Option<T>, java.io.Serializable

Deprecated. since 5.6 Use Option.some(Object)

@Deprecated
public class Some<T>
extends java.lang.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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.confluence.cache.option.Option
Option.Builder
 
Constructor Summary
Some(T object)
          Deprecated.  
 
Method Summary
 boolean equals(java.lang.Object o)
          Deprecated.  
 boolean exists()
          Deprecated.  
 T getOrElse(T otherwise)
          Deprecated.  
 int hashCode()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Some

public Some(T object)
Deprecated. 
Method Detail

exists

public boolean exists()
Deprecated. 
Specified by:
exists in interface Option<T>

getOrElse

public T getOrElse(T otherwise)
Deprecated. 
Specified by:
getOrElse in interface Option<T>

equals

public boolean equals(java.lang.Object o)
Deprecated. 
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.