com.atlassian.confluence.cache.option
Interface Option<T>

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
None, Some

public interface Option<T>
extends java.io.Serializable

The option of a cached entry. Allows the caching of a found entry or one that is not found.


Nested Class Summary
static class Option.Builder
          Builds an appropriate instance of Option.
 
Method Summary
 boolean exists()
           
 T getOrElse(T otherwise)
           
 

Method Detail

exists

boolean exists()

getOrElse

T getOrElse(T otherwise)


Copyright © 2003-2014 Atlassian. All Rights Reserved.