public class Argument<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Argument<T> |
from(java.lang.String key,
java.util.function.Function<java.lang.String,T> castFunction) |
static <T> Argument<T> |
from(java.lang.String key,
java.util.function.Function<java.lang.String,T> castFunction,
T defaultValue) |
boolean |
isEmpty() |
boolean |
isPresent(QuestProgress progress) |
static <T> Argument<T> |
of(T value) |
T |
value(QuestProgress progress) |
public static <T> Argument<T> of(T value)
public static <T> Argument<T> from(java.lang.String key, java.util.function.Function<java.lang.String,T> castFunction)
public static <T> Argument<T> from(java.lang.String key, java.util.function.Function<java.lang.String,T> castFunction, T defaultValue)
public T value(QuestProgress progress)
public boolean isPresent(QuestProgress progress)
public boolean isEmpty()