Package org.robovm.rt.bro
Class GlobalValueSupplier<T>
java.lang.Object
org.robovm.rt.bro.GlobalValueSupplier<T>
- Direct Known Subclasses:
LazyGlobalValue
public abstract class GlobalValueSupplier<T> extends Object
Supplier interface for a
GlobalValue-
Constructor Summary
Constructors Constructor Description GlobalValueSupplier() -
Method Summary
Modifier and Type Method Description abstract booleanisAvailable()Returns true if global value is available (e.g.abstract Tvalue()Returns the value of theGlobalValue.
-
Constructor Details
-
GlobalValueSupplier
public GlobalValueSupplier()
-
-
Method Details
-
isAvailable
public abstract boolean isAvailable()Returns true if global value is available (e.g. there is no UnsatisfiedLinkError when accessing it)- Returns:
- true if available
-
value
Returns the value of theGlobalValue.- Returns:
- the value.
-