Class DurationInSecondsProperty

All Implemented Interfaces:
io.github.mmm.event.EventSource<ObservableEvent<Long>,ObservableEventListener<? super Long>>, io.github.mmm.marshall.MarshallableObject, io.github.mmm.marshall.Marshaller<Object>, io.github.mmm.marshall.Marshalling<Object>, io.github.mmm.marshall.MarshallingObject, io.github.mmm.marshall.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>, AttributeReadOnly, io.github.mmm.property.comparable.ReadableComparableProperty<Long>, ReadableLongProperty, WritableLongProperty, ReadableNumberProperty<Long>, WritableNumberProperty<Long>, ReadableSimpleProperty<Long>, WritableSimpleProperty<Long>, ReadableProperty<Long>, WritableProperty<Long>, Validatable, io.github.mmm.value.CriteriaObject<Long>, ComparableExpression<Long>, Expression<Long>, LongExpression, ObservableLongValue, ReadableLongValue, WritableLongValue, NumberExpression<Long>, ObservableNumberValue<Long>, ReadableNumberValue<Long>, WritableNumberValue<Long>, ObservableSimpleValue<Long>, ReadableSimpleValue<Long>, WritableSimpleValue<Long>, ObservableValue<Long>, WritableObservableValue<Long>, io.github.mmm.value.PropertyPath<Long>, io.github.mmm.value.ReadablePath, io.github.mmm.value.ReadableTypedValue<Long>, io.github.mmm.value.ReadableValue<Long>, io.github.mmm.value.TypedPropertyPath<Long>, io.github.mmm.value.WritableValue<Long>, Cloneable, Comparable<ReadableProperty<?>>, Supplier<Long>

public class DurationInSecondsProperty extends LongProperty
Extends LongProperty to store a Duration in seconds.
Since:
1.0.0
See Also:
  • Constructor Details

    • DurationInSecondsProperty

      public DurationInSecondsProperty(String name)
      The constructor.
      Parameters:
      name - the name.
    • DurationInSecondsProperty

      public DurationInSecondsProperty(String name, PropertyMetadata<Long> metadata)
      The constructor.
      Parameters:
      name - the name.
      metadata - the metadata.
  • Method Details

    • getValueAsDuration

      public Duration getValueAsDuration()
      Returns:
      the value as Duration.
    • setValueAsDuration

      public void setValueAsDuration(Duration duration)
      Parameters:
      duration - the new value as Duration.