Package com.oss.asn1

Class ISO8601Duration.Fractional_part

java.lang.Object
com.oss.asn1.ISO8601Duration.Fractional_part
Enclosing class:
ISO8601Duration

public static class ISO8601Duration.Fractional_part extends Object
Class Fractional_part represents a duration's fractional part.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Fractional_part(int value, int digits)
    Constructs fractional part value form digits and fractional value components.
  • Method Summary

    Modifier and Type
    Method
    Description
    final 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
    Get the value component of 'this' object.
    int
    Returns a hash code for this object
    final void
    setDigits(int digits)
    Set the digits component of 'this' object.
    final void
    setValue(int value)
    Set the value component of 'this' object.

    Methods inherited from class java.lang.Object

    equals, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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 value
      digits - 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

      public final boolean equalTo(ISO8601Duration.Fractional_part that)
      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
      Overrides:
      hashCode in class Object
      Returns:
      a hash code for this object