Package org.drools.core.base.field
Class IntegerFieldImpl
- java.lang.Object
-
- org.drools.core.base.field.IntegerFieldImpl
-
- All Implemented Interfaces:
Externalizable
,Serializable
,FieldValue
public class IntegerFieldImpl extends Object implements FieldValue, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntegerFieldImpl()
IntegerFieldImpl(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
BigDecimal
getBigDecimalValue()
BigInteger
getBigIntegerValue()
boolean
getBooleanValue()
byte
getByteValue()
char
getCharValue()
double
getDoubleValue()
float
getFloatValue()
int
getIntValue()
long
getLongValue()
short
getShortValue()
Serializable
getValue()
int
hashCode()
boolean
isBooleanField()
boolean
isCollectionField()
Returns true if the given field value implements the Collection interfaceboolean
isFloatNumberField()
boolean
isIntegerNumberField()
boolean
isNull()
boolean
isObjectField()
boolean
isStringField()
void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getValue
public Serializable getValue()
- Specified by:
getValue
in interfaceFieldValue
-
getBooleanValue
public boolean getBooleanValue()
- Specified by:
getBooleanValue
in interfaceFieldValue
-
getByteValue
public byte getByteValue()
- Specified by:
getByteValue
in interfaceFieldValue
-
getCharValue
public char getCharValue()
- Specified by:
getCharValue
in interfaceFieldValue
-
getDoubleValue
public double getDoubleValue()
- Specified by:
getDoubleValue
in interfaceFieldValue
-
getFloatValue
public float getFloatValue()
- Specified by:
getFloatValue
in interfaceFieldValue
-
getIntValue
public int getIntValue()
- Specified by:
getIntValue
in interfaceFieldValue
-
getLongValue
public long getLongValue()
- Specified by:
getLongValue
in interfaceFieldValue
-
getShortValue
public short getShortValue()
- Specified by:
getShortValue
in interfaceFieldValue
-
isNull
public boolean isNull()
- Specified by:
isNull
in interfaceFieldValue
-
isBooleanField
public boolean isBooleanField()
- Specified by:
isBooleanField
in interfaceFieldValue
-
isFloatNumberField
public boolean isFloatNumberField()
- Specified by:
isFloatNumberField
in interfaceFieldValue
-
isIntegerNumberField
public boolean isIntegerNumberField()
- Specified by:
isIntegerNumberField
in interfaceFieldValue
-
isObjectField
public boolean isObjectField()
- Specified by:
isObjectField
in interfaceFieldValue
-
isCollectionField
public boolean isCollectionField()
Description copied from interface:FieldValue
Returns true if the given field value implements the Collection interface- Specified by:
isCollectionField
in interfaceFieldValue
- Returns:
-
isStringField
public boolean isStringField()
- Specified by:
isStringField
in interfaceFieldValue
-
getBigDecimalValue
public BigDecimal getBigDecimalValue()
- Specified by:
getBigDecimalValue
in interfaceFieldValue
-
getBigIntegerValue
public BigInteger getBigIntegerValue()
- Specified by:
getBigIntegerValue
in interfaceFieldValue
-
-