Package | Description |
---|---|
gov.sandia.cognition.time |
Provides classes for dealing with temporal data.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDuration
A default implementation of the
Duration interface. |
Modifier and Type | Method and Description |
---|---|
Duration |
DefaultDuration.absoluteValue() |
Duration |
Duration.absoluteValue()
Returns the absolute value of this duration.
|
Duration |
DefaultDuration.divide(double scalar) |
Duration |
Duration.divide(double scalar)
Divides this duration by the given scalar value and returns the result.
|
Duration |
DefaultDuration.minus(Duration other) |
Duration |
Duration.minus(Duration other)
Subtracts the given duration from this duration and returns the
difference.
|
Duration |
DefaultDuration.negative() |
Duration |
Duration.negative()
Returns the negative of this duration.
|
Duration |
DefaultDuration.plus(Duration other) |
Duration |
Duration.plus(Duration other)
Adds this duration to the given duration and returns the sum.
|
Duration |
DefaultDuration.times(double scalar) |
Duration |
Duration.times(double scalar)
Multiplies this duration by the given scalar value and returns the
product.
|
Modifier and Type | Method and Description |
---|---|
int |
DefaultDuration.compareTo(Duration other) |
double |
DefaultDuration.divide(Duration other) |
double |
Duration.divide(Duration other)
Divides this duration by the given duration and returns the ratio.
|
boolean |
DefaultDuration.equals(Duration other) |
boolean |
Duration.equals(Duration other)
Determines if this duration is equivalent to the given duration.
|
Duration |
DefaultDuration.minus(Duration other) |
Duration |
Duration.minus(Duration other)
Subtracts the given duration from this duration and returns the
difference.
|
Duration |
DefaultDuration.plus(Duration other) |
Duration |
Duration.plus(Duration other)
Adds this duration to the given duration and returns the sum.
|