public abstract class UIState<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected Actor |
actor |
protected Map<Class<?>,Converter<?>> |
DEFAULT_CONVERTERS |
Modifier | Constructor and Description |
---|---|
protected |
UIState(Actor actor) |
Modifier and Type | Method and Description |
---|---|
<TARGET> TARGET |
as(Class<TARGET> type) |
BigDecimal |
asBigDecimal() |
Boolean |
asBoolean() |
org.joda.time.DateTime |
asDate() |
org.joda.time.DateTime |
asDate(String format) |
Double |
asDouble() |
<C> C |
asEnum(Class<C> enumType) |
Float |
asFloat() |
Integer |
asInteger() |
LocalDate |
asLocalDate() |
LocalDate |
asLocalDate(String format) |
Long |
asLong() |
String |
asString() |
protected Converter<?> |
converterFor(Class<?> type) |
protected <C> List<C> |
convertToEnums(Class<C> enumType,
List<?> values) |
abstract T |
resolve() |
T |
value() |
protected final Actor actor
protected UIState(Actor actor)
public abstract T resolve()
public T value()
public <TARGET> TARGET as(Class<TARGET> type)
public String asString()
public Integer asInteger()
public Double asDouble()
public Float asFloat()
public Long asLong()
public Boolean asBoolean()
public org.joda.time.DateTime asDate()
public LocalDate asLocalDate()
public BigDecimal asBigDecimal()
public org.joda.time.DateTime asDate(String format)
public <C> C asEnum(Class<C> enumType)
Copyright © 2023. All rights reserved.