public class IntField extends java.lang.Object implements Field
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private int |
value |
Constructor and Description |
---|
IntField(int i)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
private static final long serialVersionUID
private final int value
public IntField(int i)
i
- The value of this field.public int getValue()
public java.lang.String toString()
public int hashCode()
Field
public boolean equals(java.lang.Object field)
public void serialize(java.io.DataOutputStream dos) throws java.io.IOException
Field
public boolean compare(Predicate.Op op, Field val)
compare
in interface Field
op
- The operatorval
- The value to compare this Field toIllegalCastException
- if val is not an IntFieldField.compare(simpledb.Predicate.Op, simpledb.Field)