Package top.girlkisser.lazuli.api.misc
Class ArgLazy<ItT,ArgT>
java.lang.Object
top.girlkisser.lazuli.api.misc.ArgLazy<ItT,ArgT>
- Type Parameters:
ItT- The return type.ArgT- The argument type.
A clone of
Lazy except ArgLazy takes in an
argument too.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ArgLazy
A clone ofLazywith arguments.- Parameters:
function- The function to provide the lazy's value.
-
-
Method Details
-
get
Get or generate the lazy's value.- Parameters:
arg- The argument to give the function.- Returns:
- The lazy's value.
-
isPresent
public boolean isPresent()Gets whether the lazy's value has been generated or not.- Returns:
- `true` if the value has been generated.
-