Class OutdateableReference<T>

    • Constructor Detail

      • OutdateableReference

        public OutdateableReference()
    • Method Detail

      • isOutdated

        public boolean isOutdated()
      • get

        @Nullable
        public T get()
        Specified by:
        get in interface Reference<T>
        Specified by:
        get in interface java.util.function.Supplier<T>
      • update

        public T update​(T newValue)
        Returns:
        The new Value
      • outdate

        public boolean outdate()
        Returns:
        Whether the reference became outdated with this call.
      • compute

        public T compute​(java.util.function.Supplier<T> supplier)