Class OutdateableReference.SettableOfSupplier<T>

    • Constructor Detail

      • SettableOfSupplier

        public SettableOfSupplier​(java.util.function.Supplier<T> supplier)
    • Method Detail

      • set

        @Nullable
        public T set​(T newValue)
        Specified by:
        set in interface Reference.Settable<T>
        Parameters:
        newValue - The new value
        Returns:
        The previous value
      • outdate

        public boolean outdate()
        Overrides:
        outdate in class OutdateableReference<T>
        Returns:
        Whether the reference became outdated with this call.