Class Resource<T>

  • All Implemented Interfaces:
    org.dmfs.jems2.Fragile<WithResource.Resource<T>,​java.lang.Exception>

    public final class Resource<T>
    extends java.lang.Object
    implements org.dmfs.jems2.Fragile<WithResource.Resource<T>,​java.lang.Exception>
    • Constructor Summary

      Constructors 
      Constructor Description
      Resource​(org.dmfs.jems2.Fragile<T,​java.lang.Exception> resourceGenerator, org.dmfs.jems2.FragileProcedure<T,​java.lang.Exception> cleanUp)  
    • Constructor Detail

      • Resource

        public Resource​(org.dmfs.jems2.Fragile<T,​java.lang.Exception> resourceGenerator,
                        org.dmfs.jems2.FragileProcedure<T,​java.lang.Exception> cleanUp)