Class IntegerFieldImpl

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, org.drools.base.rule.accessor.FieldValue

    public class IntegerFieldImpl
    extends java.lang.Object
    implements org.drools.base.rule.accessor.FieldValue, java.io.Externalizable
    See Also:
    Serialized Form
    • Constructor Detail

      • IntegerFieldImpl

        public IntegerFieldImpl()
      • IntegerFieldImpl

        public IntegerFieldImpl​(int value)
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getValue

        public java.io.Serializable getValue()
        Specified by:
        getValue in interface org.drools.base.rule.accessor.FieldValue
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBooleanValue

        public boolean getBooleanValue()
        Specified by:
        getBooleanValue in interface org.drools.base.rule.accessor.FieldValue
      • getByteValue

        public byte getByteValue()
        Specified by:
        getByteValue in interface org.drools.base.rule.accessor.FieldValue
      • getCharValue

        public char getCharValue()
        Specified by:
        getCharValue in interface org.drools.base.rule.accessor.FieldValue
      • getDoubleValue

        public double getDoubleValue()
        Specified by:
        getDoubleValue in interface org.drools.base.rule.accessor.FieldValue
      • getFloatValue

        public float getFloatValue()
        Specified by:
        getFloatValue in interface org.drools.base.rule.accessor.FieldValue
      • getIntValue

        public int getIntValue()
        Specified by:
        getIntValue in interface org.drools.base.rule.accessor.FieldValue
      • getLongValue

        public long getLongValue()
        Specified by:
        getLongValue in interface org.drools.base.rule.accessor.FieldValue
      • getShortValue

        public short getShortValue()
        Specified by:
        getShortValue in interface org.drools.base.rule.accessor.FieldValue
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface org.drools.base.rule.accessor.FieldValue
      • isBooleanField

        public boolean isBooleanField()
        Specified by:
        isBooleanField in interface org.drools.base.rule.accessor.FieldValue
      • isFloatNumberField

        public boolean isFloatNumberField()
        Specified by:
        isFloatNumberField in interface org.drools.base.rule.accessor.FieldValue
      • isIntegerNumberField

        public boolean isIntegerNumberField()
        Specified by:
        isIntegerNumberField in interface org.drools.base.rule.accessor.FieldValue
      • isObjectField

        public boolean isObjectField()
        Specified by:
        isObjectField in interface org.drools.base.rule.accessor.FieldValue
      • isCollectionField

        public boolean isCollectionField()
        Specified by:
        isCollectionField in interface org.drools.base.rule.accessor.FieldValue
      • isStringField

        public boolean isStringField()
        Specified by:
        isStringField in interface org.drools.base.rule.accessor.FieldValue
      • getBigDecimalValue

        public java.math.BigDecimal getBigDecimalValue()
        Specified by:
        getBigDecimalValue in interface org.drools.base.rule.accessor.FieldValue
      • getBigIntegerValue

        public java.math.BigInteger getBigIntegerValue()
        Specified by:
        getBigIntegerValue in interface org.drools.base.rule.accessor.FieldValue