akka.japi
Class Option.Some<A>

java.lang.Object
  extended by akka.japi.Option<A>
      extended by akka.japi.Option.Some<A>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<A>, scala.Equals, scala.Product
Enclosing class:
Option<A>

public static final class Option.Some<A>
extends Option<A>
implements scala.Product, scala.Serializable

Class Some[A] represents existing values of type A.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class akka.japi.Option
Option.Some<A>, Option.Some$
 
Constructor Summary
Option.Some(A v)
           
 
Method Summary
 scala.Some<A> asScala()
           
 A get()
           
<B> B
getOrElse(B defaultValue)
          Returns a if this is some(a) or defaultValue if this is none.
 boolean isEmpty()
           
 A v()
           
 
Methods inherited from class akka.japi.Option
fromScalaOption, isDefined, iterator, java2ScalaOption, none, option, scala2JavaOption, some
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

Option.Some

public Option.Some(A v)
Method Detail

v

public A v()

get

public A get()
Specified by:
get in class Option<A>

getOrElse

public <B> B getOrElse(B defaultValue)
Description copied from class: Option
Returns a if this is some(a) or defaultValue if this is none.

Specified by:
getOrElse in class Option<A>
Parameters:
defaultValue - (undocumented)
Returns:
(undocumented)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Option<A>

asScala

public scala.Some<A> asScala()
Specified by:
asScala in class Option<A>