Constructor and Description |
---|
Duration(double value,
java.util.concurrent.TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Duration o) |
double |
convertTo(java.util.concurrent.TimeUnit timeUnit) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static Duration |
nanosSince(long start) |
double |
toMillis() |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.concurrent.TimeUnit timeUnit) |
static Duration |
valueOf(java.lang.String duration) |
public static Duration nanosSince(long start)
public double toMillis()
public double convertTo(java.util.concurrent.TimeUnit timeUnit)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Duration o)
compareTo
in interface java.lang.Comparable<Duration>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.util.concurrent.TimeUnit timeUnit)
public static Duration valueOf(java.lang.String duration) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Copyright © 2014 Red Hat. All Rights Reserved.