Class Lazy<T,​E extends java.lang.Exception>

  • All Implemented Interfaces:
    ILazy<T,​E>

    public class Lazy<T,​E extends java.lang.Exception>
    extends java.lang.Object
    implements ILazy<T,​E>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      static <T,​E extends java.lang.Exception>
      ILazy<T,​E>
      narrow​(ILazy<? extends T,​E> lazy)  
      static <T,​E extends java.lang.Exception>
      ILazy<T,​E>
      of​(java.lang.Class<E> exceptionClass, ISupplier<T,​E> supplier)  
      static <T> ILazy<T,​java.lang.RuntimeException> of​(ISupplier<T,​java.lang.RuntimeException> supplier)  
      IOptional<T,​E> optional()  
      • Methods inherited from class java.lang.Object

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

      • get

        public T get()
              throws E extends java.lang.Exception
        Specified by:
        get in interface ILazy<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • of

        public static <T> ILazy<T,​java.lang.RuntimeException> of​(ISupplier<T,​java.lang.RuntimeException> supplier)
      • of

        public static <T,​E extends java.lang.Exception> ILazy<T,​E> of​(java.lang.Class<E> exceptionClass,
                                                                                  ISupplier<T,​E> supplier)
      • narrow

        public static <T,​E extends java.lang.Exception> ILazy<T,​E> narrow​(ILazy<? extends T,​E> lazy)