Duration(Integer milliseconds)
  • milliseconds

    Number of milliseconds of this duration.

hashSource Codeshared actual Integer hash

This implementation respect the constraint that if x==y then x.hash==y.hash.

Refines Identifiable.hash ultimately refines Object.hash
millisecondsSource Codeshared actual Integer milliseconds

Number of milliseconds of this duration.

periodSource Codeshared Period period

Returns this duration as a period of milliseconds.

stringSource Codeshared actual String string

Returns the string representation of this duration.

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: ReadableDuration
equalsSource Codeshared actual Boolean equals(Object other)

Duration is considered equal when type and milliseconds are the same.

Refines Identifiable.equals ultimately refines Object.equals
scaleSource Codeshared actual Duration scale(Integer scale)

Returns a new Duration with it´s milliseconds scaled.

Inherited Methods
Methods inherited from: Object
Methods inherited from: Scalable<Scale,Value>