public class DurationInSecondsProperty extends LongProperty
LongProperty
to store a Duration
in seconds.AbstractProperty.PropertyBuilder<T extends AbstractProperty<? extends V>>
TYPE
NO_PROPERTIES
PROPERTY_TYPE
Constructor and Description |
---|
DurationInSecondsProperty(String name,
Bean bean)
The constructor.
|
DurationInSecondsProperty(String name,
Bean bean,
AbstractValidator<? super Number> validator)
The constructor.
|
DurationInSecondsProperty(String name,
Bean bean,
Supplier<Long> expression)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Duration |
getValueAsDuration() |
void |
setValueAsDuration(Duration duration) |
doGetValue, doSetNumber, fromJson, setValue, toJson, withValdidator
doSetValue
addListener, addListener, fireValueChangedEvent, removeListener, removeListener
bind, bindBidirectional, clearValidationResult, copy, equals, getReadOnly, getValue, hashCode, invalidated, isBound, isReadOnly, isValid, markInvalid, requireWritable, unbind, unbindBidirectional, validate
assignValueFrom, clone, copy, copy, copy, copy, copy, getBean, getJsonUtil, getName, getValidator, isMandatory, toJson, toString, withValdidator
finalize, getClass, notify, notifyAll, wait, wait, wait
get, set
add, add, add, divide, divide, divide, getType, multiply, multiply, multiply, negate, subtract, subtract, subtract
add, add, asString, asString, asString, divide, divide, doubleValue, floatValue, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, intValue, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, longValue, multiply, multiply, subtract, subtract
getReadOnly, getReadOnly, isMandatory, isReadOnly, isValid, validate
bind, bindBidirectional, isBound, unbind, unbindBidirectional
getBean, getName
addListener, getValue, removeListener
toJson
public DurationInSecondsProperty(String name, Bean bean)
name
- - see AbstractProperty.getName()
.bean
- - see AbstractProperty.getBean()
.public DurationInSecondsProperty(String name, Bean bean, AbstractValidator<? super Number> validator)
name
- - see AbstractProperty.getName()
.bean
- - see AbstractProperty.getBean()
.validator
- - see AbstractValueProperty.validate()
.public DurationInSecondsProperty(String name, Bean bean, Supplier<Long> expression)
name
- - see AbstractProperty.getName()
.bean
- - see AbstractProperty.getBean()
.expression
- the Supplier
providing
the actual value
.Copyright © 2001–2016 mmm-Team. All rights reserved.