JavaScript is disabled on your browser.
play.libs

Class F.Some<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>
    Enclosing class:
    F


    public static class F.Some<T>
    extends F.Option<T>
    Represents existing values of type T.
    • Constructor Summary

      Constructors
      Constructor and Description
      F.Some (T value)
    • Method Summary

      Methods
      Modifier and Type Method and Description
      T get ()
      Returns the value if defined.
      boolean isDefined ()
      Is the value of this option defined?
      java.util.Iterator<T> iterator ()
      java.lang.String toString ()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • F.Some

        public F.Some(T value)
    • Method Detail

      • isDefined

        public boolean isDefined()
        Description copied from class: F.Option
        Is the value of this option defined?
        Specified by:
        isDefined in class F.Option<T>
        Returns:
        true if the value is defined, otherwise false.
      • get

        public T get()
        Description copied from class: F.Option
        Returns the value if defined.
        Specified by:
        get in class F.Option<T>
        Returns:
        The value if defined, otherwise null.
      • iterator

        public java.util.Iterator<T> iterator()
      • toString

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

AltStyle によって変換されたページ (->オリジナル) /