public class PropertyInstant extends Property<java.time.Instant>
| Modifier and Type | Field and Description |
|---|---|
protected static java.time.format.DateTimeFormatter |
FORMATTER
formatter for creation date and last modified.
|
protected java.time.ZoneOffset |
zone
zone offset.
|
description, fixedValues, name, readOnly, type, value| Constructor and Description |
|---|
PropertyInstant(String name)
Constructor by property name.
|
PropertyInstant(String uid,
java.time.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
|
java.time.Instant |
fromString(String v)
Unmarshalling of value for serailized string expression.
|
java.time.ZoneOffset |
getZone()
Getter accessor for attribute 'zone'.
|
void |
setZone(java.time.ZoneOffset zone)
Setter accessor for attribute 'zone'.
|
java.time.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 java.time.format.DateTimeFormatter FORMATTER
protected java.time.ZoneOffset zone
public PropertyInstant(String name)
name - property namepublic PropertyInstant(String uid, String value)
uid - unique namelvl - current log levelpublic PropertyInstant(String uid, java.time.Instant date)
uid - unique namelvl - current log levelpublic java.time.LocalDateTime toLocalDateTime()
public String asString()
public java.time.Instant fromString(String v)
fromString in class Property<java.time.Instant>v - value represented as a serialized Stringpublic java.time.ZoneOffset getZone()
public void setZone(java.time.ZoneOffset zone)
zone - new value for 'zone 'Copyright © 2013–2017 FF4J. All rights reserved.