Package akka.japi

Class 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, java.io.Serializable
    Class Some[A] represents existing values of type A.
    See Also:
    Serialized Form
    • Constructor Detail

      • Some

        public 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>
      • isEmpty

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

        public scala.Some<A> asScala()
        Specified by:
        asScala in class Option<A>
      • copy$default$1

        public <A> A copy$default$1()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object