com.rational.test.value

Class Decimal

  • java.lang.Object
    • java.lang.Number
      • com.rational.test.value.Decimal
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable


    public class Decimal
    extends java.lang.Number
    implements java.lang.Comparable
    Value class that provides an implementation of the .NET Decimal data type. This class allows a Java client to interact with a .NET application.
    Since:
    RFT1.1
    See Also:
    Serialized Form
    • Field Detail

      • value

        protected java.math.BigDecimal value
      • MAX_VALUE

        public static final Decimal MAX_VALUE
      • MIN_VALUE

        public static final Decimal MIN_VALUE
    • Constructor Detail

      • Decimal

        public Decimal(long longValue)
        Constructs from a signed 64 bit long value
      • Decimal

        public Decimal(int ivalue)
        Constructs from a signed 32 bit value
      • Decimal

        public Decimal(java.lang.String s)
        Constructs from a string.
      • Decimal

        public Decimal(java.math.BigDecimal bigDecimal)
      • Decimal

        public Decimal(byte sign,
                       long valueHi32,
                       long valueMid32,
                       long valueLo32,
                       byte scale)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Since:
        RFT1.1
      • toHexString

        public java.lang.String toHexString()
        Since:
        RFT1.1
      • valueOf

        public static Decimal valueOf(java.lang.String s)
        Since:
        RFT1.1
      • valueOf

        public static Decimal valueOf(java.lang.String s,
                                      int radix)
        Since:
        RFT1.1
      • compareTo

        public int compareTo(Decimal anotherDecimal)
        `
        Since:
        RFT1.1
      • compareTo

        public int compareTo(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
        Since:
        RFT1.1
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
        Since:
        RFT1.1
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Since:
        RFT1.1
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class java.lang.Number
        Since:
        RFT1.1
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class java.lang.Number
        Since:
        RFT1.1
      • intValue

        public int intValue()
        Specified by:
        intValue in class java.lang.Number
        Since:
        RFT1.1
      • bigDecimalValue

        public java.math.BigDecimal bigDecimalValue()
      • longValue

        public long longValue()
        Specified by:
        longValue in class java.lang.Number
        Since:
        RFT1.1