public class DefaultElement extends Object implements RawValueElement
| Constructor and Description |
|---|
DefaultElement(String key,
boolean value) |
DefaultElement(String key,
double value) |
DefaultElement(String key,
Duration value) |
DefaultElement(String key,
Instant value) |
DefaultElement(String key,
long value) |
DefaultElement(String key,
String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Element o) |
boolean |
getAsBoolean() |
double |
getAsDouble() |
Duration |
getAsDuration() |
Instant |
getAsInstant() |
long |
getAsLong() |
String |
getAsString() |
String |
getKey() |
boolean |
hasEqualValue(Element other) |
boolean |
hasRawValue(Object value) |
boolean |
isSensitive() |
public DefaultElement(String key, boolean value)
public DefaultElement(String key, double value)
public DefaultElement(String key, long value)
public boolean isSensitive()
isSensitive in interface Elementpublic boolean getAsBoolean()
getAsBoolean in interface BooleanSupplierpublic double getAsDouble()
getAsDouble in interface DoubleSupplierpublic Duration getAsDuration()
getAsDuration in interface Elementpublic Instant getAsInstant()
getAsInstant in interface Elementpublic long getAsLong()
getAsLong in interface LongSupplierpublic String getAsString()
getAsString in interface Elementpublic int compareTo(Element o)
compareTo in interface Comparable<Element>public boolean hasRawValue(Object value)
hasRawValue in interface RawValueElementpublic boolean hasEqualValue(Element other)
hasEqualValue in interface ElementCopyright © 2018. All rights reserved.