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 ConfigurationParameters.Milliseconds |
of(java.lang.String str)
Parses a value string into a duration.
|
static ConfigurationParameters.Milliseconds |
of(java.lang.String str,
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 valuepublic static ConfigurationParameters.Milliseconds of(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 parsepublic static ConfigurationParameters.Milliseconds of(java.lang.String str, 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 Systems Incorporated. All Rights Reserved"