|
||||||||
| 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)
|
Type |
getType()
Return the Type of this 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 FieldtoString in class java.lang.Objectpublic int hashCode()
Field
hashCode in interface FieldhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object field)
equals in interface Fieldequals in class java.lang.Object
public void serialize(java.io.DataOutputStream dos)
throws java.io.IOException
Field
serialize in interface Fielddos - The DataOutputStream to write to.
java.io.IOExceptionDataOutputStream
public boolean compare(Predicate.Op op,
Field val)
compare in interface Fieldop - The operatorval - The value to compare this Field to
IllegalCastException - if val is not an IntFieldField.compare(simpledb.Predicate.Op, simpledb.Field)public Type getType()
getType in interface Field
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||