org.openjdk.jmh.util

Class Optional<T>

    • Method Detail

      • orElse

        public T orElse(T elseVal)
      • none

        public static <T> Optional<T> none()
        Produce empty Option
        Type Parameters:
        T - type
        Returns:
        empty option
      • of

        public static <T> Optional<T> of(T val)
        Wrap the existing value in Option.
        Type Parameters:
        T - type
        Parameters:
        val - value to wrap
        Returns:
        option with value
      • of

        public static <T> Optional<T> of(String source,                 Optional.Unmarshaller<T> unmarshaller)
        Parse the existing string value into the Option
        Type Parameters:
        T - type
        Parameters:
        source - source string
        unmarshaller - unmarshaller lambda parsing the (String -> T)
        Returns:
        value wrapped in the Option
      • eitherOf

        public static <T> Optional<T> eitherOf(T val)
      • hasValue

        public boolean hasValue()
      • get

        public T get()

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14