Package com.oss.asn1
Class ISO8601Duration.Fractional_part
java.lang.Object
com.oss.asn1.ISO8601Duration.Fractional_part
- Enclosing class:
- ISO8601Duration
Class Fractional_part represents a duration's fractional part.
-
Constructor Summary
ConstructorDescriptionDefault constructorFractional_part
(int value, int digits) Constructs fractional part value form digits and fractional value components. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Compare 'this' object to another Fractional_part object to see if their contents are the same.final int
Get the digits component of 'this' object.final int
getValue()
Get the value component of 'this' object.int
hashCode()
Returns a hash code for this objectfinal void
setDigits
(int digits) Set the digits component of 'this' object.final void
setValue
(int value) Set the value component of 'this' object.
-
Constructor Details
-
Fractional_part
public Fractional_part()Default constructor -
Fractional_part
public Fractional_part(int value, int digits) Constructs fractional part value form digits and fractional value components.- Parameters:
value
- fractional valuedigits
- number of fractional digits
-
-
Method Details
-
getDigits
public final int getDigits()Get the digits component of 'this' object.- Returns:
- int value indicating the digits.
-
getValue
public final int getValue()Get the value component of 'this' object.- Returns:
- int value.
-
setDigits
public final void setDigits(int digits) Set the digits component of 'this' object.- Parameters:
digits
- the digits to set.
-
setValue
public final void setValue(int value) Set the value component of 'this' object.- Parameters:
value
- the digits to set.
-
equalTo
Compare 'this' object to another Fractional_part object to see if their contents are the same.- Parameters:
that
- the Fractional object to compare 'this' object to.- Returns:
- true if contents of both objects are the same.
-
hashCode
public int hashCode()Returns a hash code for this object
-