org.drools.base.field
Class LongFieldImpl

java.lang.Object
  extended by org.drools.base.field.LongFieldImpl
All Implemented Interfaces:
Externalizable, Serializable, FieldValue

public class LongFieldImpl
extends Object
implements FieldValue, Externalizable

See Also:
Serialized Form

Constructor Summary
LongFieldImpl()
           
LongFieldImpl(long value)
           
 
Method Summary
 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 interface
 boolean isFloatNumberField()
           
 boolean isIntegerNumberField()
           
 boolean isNull()
           
 boolean isObjectField()
           
 boolean isStringField()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongFieldImpl

public LongFieldImpl()

LongFieldImpl

public LongFieldImpl(long value)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getValue

public Serializable getValue()
Specified by:
getValue in interface FieldValue

toString

public String toString()
Overrides:
toString in class Object

getBooleanValue

public boolean getBooleanValue()
Specified by:
getBooleanValue in interface FieldValue

getByteValue

public byte getByteValue()
Specified by:
getByteValue in interface FieldValue

getCharValue

public char getCharValue()
Specified by:
getCharValue in interface FieldValue

getDoubleValue

public double getDoubleValue()
Specified by:
getDoubleValue in interface FieldValue

getFloatValue

public float getFloatValue()
Specified by:
getFloatValue in interface FieldValue

getIntValue

public int getIntValue()
Specified by:
getIntValue in interface FieldValue

getLongValue

public long getLongValue()
Specified by:
getLongValue in interface FieldValue

getShortValue

public short getShortValue()
Specified by:
getShortValue in interface FieldValue

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isNull

public boolean isNull()
Specified by:
isNull in interface FieldValue

isBooleanField

public boolean isBooleanField()
Specified by:
isBooleanField in interface FieldValue

isFloatNumberField

public boolean isFloatNumberField()
Specified by:
isFloatNumberField in interface FieldValue

isIntegerNumberField

public boolean isIntegerNumberField()
Specified by:
isIntegerNumberField in interface FieldValue

isObjectField

public boolean isObjectField()
Specified by:
isObjectField in interface FieldValue

isCollectionField

public boolean isCollectionField()
Description copied from interface: FieldValue
Returns true if the given field value implements the Collection interface

Specified by:
isCollectionField in interface FieldValue
Returns:

isStringField

public boolean isStringField()
Specified by:
isStringField in interface FieldValue

getBigDecimalValue

public BigDecimal getBigDecimalValue()
Specified by:
getBigDecimalValue in interface FieldValue

getBigIntegerValue

public BigInteger getBigIntegerValue()
Specified by:
getBigIntegerValue in interface FieldValue


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.