Class Optional<T>

java.lang.Object
org.glowroot.agent.plugin.api.util.Optional<T>

public class Optional<T> extends Object
  • Method Details

    • fromNullable

      public static <T> Optional<T> fromNullable(T value)
    • of

      public static <T> Optional<T> of(T value)
    • isPresent

      public boolean isPresent()
    • get

      public T get()
    • orNull

      public T orNull()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object