|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.IntField
public class IntField
Instance of Field that stores a single integer.
Field Summary | |
---|---|
private int |
value
|
Constructor Summary | |
---|---|
IntField(int i)
Constructor. |
Method Summary | |
---|---|
boolean |
compare(Predicate.Op op,
Field val)
Compare the specified field to the value of this Field. |
boolean |
equals(java.lang.Object field)
|
int |
getValue()
|
int |
hashCode()
Hash code. |
void |
serialize(java.io.DataOutputStream dos)
Write the bytes representing this field to the specified DataOutputStream. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int value
Constructor Detail |
---|
public IntField(int i)
i
- The value of this field.Method Detail |
---|
public int getValue()
public java.lang.String toString()
toString
in interface Field
toString
in class java.lang.Object
public int hashCode()
Field
hashCode
in interface Field
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object field)
equals
in interface Field
equals
in class java.lang.Object
public void serialize(java.io.DataOutputStream dos) throws java.io.IOException
Field
serialize
in interface Field
dos
- The DataOutputStream to write to.
java.io.IOException
DataOutputStream
public boolean compare(Predicate.Op op, Field val)
compare
in interface Field
op
- The operatorval
- The value to compare this Field to
IllegalCastException
- if val is not an IntFieldField.compare(simpledb.Predicate.Op, simpledb.Field)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |