public static final class ConfigurationParameters.Milliseconds
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ConfigurationParameters.Milliseconds |
FOREVER |
static ConfigurationParameters.Milliseconds |
NEVER |
static ConfigurationParameters.Milliseconds |
NULL |
long |
value |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static ConfigurationParameters.Milliseconds |
of(long value)
Returns a new milliseconds object from the given long value.
|
static @Nullable ConfigurationParameters.Milliseconds |
of(@Nullable java.lang.String str)
Parses a value string into a duration.
|
static @NotNull ConfigurationParameters.Milliseconds |
of(@Nullable java.lang.String str,
@NotNull ConfigurationParameters.Milliseconds defaultValue) |
public static final ConfigurationParameters.Milliseconds NULL
public static final ConfigurationParameters.Milliseconds FOREVER
public static final ConfigurationParameters.Milliseconds NEVER
public final long value
public static ConfigurationParameters.Milliseconds of(long value)
value
- the value@Nullable public static @Nullable ConfigurationParameters.Milliseconds of(@Nullable @Nullable java.lang.String str)
<xmp>
format:= (value [ unit ])+;
value:= float value;
unit: "ms" | "s" | "m" | "h" | "d";
</xmp>
Example:
<xmp>
"100", "100ms" : 100 milliseconds
"1s 50ms": 1050 milliseconds
"1.5d": 1 1/2 days == 36 hours.
</xmp>
str
- the string to parse@NotNull public static @NotNull ConfigurationParameters.Milliseconds of(@Nullable @Nullable java.lang.String str, @NotNull @NotNull ConfigurationParameters.Milliseconds defaultValue)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved