Package org.apache.sis.internal.simple
Class SimpleDuration
java.lang.Object
org.apache.sis.internal.simple.SimpleDuration
- All Implemented Interfaces:
Duration
A temporary implementation of
Duration
.
Will probably be deleted in some future version.- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
duration
public final double durationDuration in days.
-
-
Constructor Details
-
SimpleDuration
public SimpleDuration(double duration) Creates a new duration.- Parameters:
duration
- the duration in days.
-
-
Method Details
-
toString
Returns a string representation of this duration. -
hashCode
public int hashCode()Returns a hash code value for this duration. -
equals
Compares this duration with the given object for equality.
-