Class First<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      First​(java.lang.Iterable<T> iterable)
      Creates the Optional first value of the given Iterable.
      First​(Predicate<? super T> predicate, java.lang.Iterable<T> iterable)
      Creates an Optional of the first value of the given Iterable which matches the given Predicate.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • First

        public First​(Predicate<? super T> predicate,
                     java.lang.Iterable<T> iterable)
        Creates an Optional of the first value of the given Iterable which matches the given Predicate.
        Parameters:
        predicate - The Predicate
        iterable - The Iterable
      • First

        public First​(java.lang.Iterable<T> iterable)
        Creates the Optional first value of the given Iterable.
        Parameters:
        iterable - A Iterable.