Class DateTimeValue
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.ie.Value<java.time.Instant>
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.ie.values.DateTimeValue
-
public class DateTimeValue extends Value<java.time.Instant>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.telemetry.protocols.netflow.parser.ie.Value
Value.Visitor
-
-
Field Summary
Fields Modifier and Type Field Description static long
SECONDS_TO_EPOCH
Number of seconds between 1900-01-01 and 1970-01-01 according to RFC 868.
-
Constructor Summary
Constructors Constructor Description DateTimeValue(java.lang.String name, java.time.Instant value)
DateTimeValue(java.lang.String name, java.util.Optional<Semantics> semantics, java.time.Instant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Instant
getValue()
static InformationElement
parserWithMicroseconds(java.lang.String name, java.util.Optional<Semantics> semantics)
static InformationElement
parserWithMilliseconds(java.lang.String name, java.util.Optional<Semantics> semantics)
static InformationElement
parserWithNanoseconds(java.lang.String name, java.util.Optional<Semantics> semantics)
static InformationElement
parserWithSeconds(java.lang.String name, java.util.Optional<Semantics> semantics)
java.lang.String
toString()
void
visit(Value.Visitor visitor)
-
Methods inherited from class org.opennms.netmgt.telemetry.protocols.netflow.parser.ie.Value
equals, getName, getSemantics, hashCode
-
-
-
-
Field Detail
-
SECONDS_TO_EPOCH
public static final long SECONDS_TO_EPOCH
Number of seconds between 1900-01-01 and 1970-01-01 according to RFC 868.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateTimeValue
public DateTimeValue(java.lang.String name, java.util.Optional<Semantics> semantics, java.time.Instant value)
-
DateTimeValue
public DateTimeValue(java.lang.String name, java.time.Instant value)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parserWithSeconds
public static InformationElement parserWithSeconds(java.lang.String name, java.util.Optional<Semantics> semantics)
-
parserWithMilliseconds
public static InformationElement parserWithMilliseconds(java.lang.String name, java.util.Optional<Semantics> semantics)
-
parserWithMicroseconds
public static InformationElement parserWithMicroseconds(java.lang.String name, java.util.Optional<Semantics> semantics)
-
parserWithNanoseconds
public static InformationElement parserWithNanoseconds(java.lang.String name, java.util.Optional<Semantics> semantics)
-
getValue
public java.time.Instant getValue()
-
visit
public void visit(Value.Visitor visitor)
-
-