Class StickySupplier<T>
java.lang.Object
me.hsgamer.hscore.common.CachedValue<T>
me.hsgamer.hscore.common.supplier.StickySupplier<T>
- Type Parameters:
T- the value's type.
- All Implemented Interfaces:
Supplier<T>
a class that uses
Supplier and caches it to use after.-
Constructor Summary
ConstructorsConstructorDescriptionStickySupplier(@NotNull Supplier<T> origin) ctor.StickySupplier(T origin) ctor. -
Method Summary
Methods inherited from class me.hsgamer.hscore.common.CachedValue
clearCache, getValue
-
Constructor Details
-
StickySupplier
ctor.- Parameters:
origin- the originalSupplier.
-
StickySupplier
ctor.- Parameters:
origin- the originalStickySupplier.
-
-
Method Details
-
get
-
generate
Description copied from class:CachedValueGenerate the value- Specified by:
generatein classCachedValue<T>- Returns:
- the value
-