Package yapion.utils

Class MethodReturnValue<T>


  • public final class MethodReturnValue<T>
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      java.util.Optional<T> asOptional()  
      static <T> MethodReturnValue<T> empty()  
      T get()  
      boolean isEmpty()  
      boolean isPresent()  
      boolean nonNullValuePresent()  
      static <T> MethodReturnValue<T> of​(T value)  
      • Methods inherited from class java.lang.Object

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

      • isEmpty

        public boolean isEmpty()
      • isPresent

        public boolean isPresent()
      • nonNullValuePresent

        public boolean nonNullValuePresent()
      • get

        public T get()
      • asOptional

        public java.util.Optional<T> asOptional()