public class Distance extends Object
| Modifier and Type | Field and Description |
|---|---|
static Distance |
ZERO
Zero distance, for example the distance from a location to itself.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
long |
millis()
Distance in milliseconds.
|
static Distance |
ofMillis(long millis)
Create a distance of the given milliseconds.
|
String |
toString() |
public static final Distance ZERO
public static Distance ofMillis(long millis)
millis - must be positive or zeropublic long millis()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.