public class PropertyInstant extends Property<Instant>
| Modifier and Type | Field and Description |
|---|---|
protected static DateTimeFormatter |
FORMATTER
formatter for creation date and last modified.
|
protected ZoneOffset |
zone
zone offset.
|
description, fixedValues, name, readOnly, type, value| Constructor and Description |
|---|
PropertyInstant(String name)
Constructor by property name.
|
PropertyInstant(String uid,
Instant date)
Constructor by string expression.
|
PropertyInstant(String uid,
String value)
Constructor by string expression.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Serialized value as String
|
Instant |
fromString(String v)
Unmarshalling of value for serailized string expression.
|
ZoneOffset |
getZone()
Getter accessor for attribute 'zone'.
|
void |
setZone(ZoneOffset zone)
Setter accessor for attribute 'zone'.
|
LocalDateTime |
toLocalDateTime() |
add2FixedValue, add2FixedValueFromString, asBoolean, asDouble, asInt, getDescription, getFixedValues, getName, getType, getValue, isReadOnly, parameterizedType, setDescription, setFixedValues, setName, setReadOnly, setType, setValue, setValueFromString, toJson, toStringprotected static final DateTimeFormatter FORMATTER
protected ZoneOffset zone
public PropertyInstant(String name)
name - property namepublic PropertyInstant(String uid, String value)
uid - unique namelvl - current log levelpublic LocalDateTime toLocalDateTime()
public String asString()
public Instant fromString(String v)
fromString in class Property<Instant>v - value represented as a serialized Stringpublic ZoneOffset getZone()
public void setZone(ZoneOffset zone)
zone - new value for 'zone 'Copyright © 2013–2020 FF4J. All rights reserved.