Class ValueOnDrop<T>

  • All Implemented Interfaces:
    Value<T>, io.aether.utils.ToString

    public class ValueOnDrop<T>
    extends ValueProxy<T>
    • Constructor Detail

      • ValueOnDrop

        public ValueOnDrop​(Value<T> self,
                           io.aether.utils.interfaces.AConsumer<java.lang.Object> task)
    • Method Detail

      • success

        public void success​(java.lang.Object owner)
        Description copied from interface: Value
        Releases resources associated with this value when it's no longer needed. This is the normal end-of-life operation for a value.
        Specified by:
        success in interface Value<T>
        Overrides:
        success in class ValueProxy<T>
        Parameters:
        owner - The object initiating the success operation (for tracking/logging)