@Test public void testIntField() { IntField field = new IntField(11); field.setValue(12); assertEquals(11, field.getTag()); assertEquals(12, field.getValue()); field.setValue(Integer.valueOf(23)); assertEquals(11, field.getTag()); assertEquals(23, field.getValue()); field = new IntField(22, 23); assertEquals(22, field.getTag()); assertEquals(23, field.getValue()); field = new IntField(33, Integer.valueOf(44)); assertEquals(33, field.getTag()); assertEquals(44, field.getValue()); }
public int getTag() { return tag; }
Field implements Serializable { public int getTag() { return tag; } }
Field implements Serializable { public int getTag() { return tag; } Field(int field, T object); }
Field implements Serializable { public int getTag() { return tag; } Field(int field, T object); int getTag(); int getField(); T getObject(); @Override String toString(); boolean equals(Object object); int hashCode(); void setTag(int tag); }
Field implements Serializable { public int getTag() { return tag; } Field(int field, T object); int getTag(); int getField(); T getObject(); @Override String toString(); boolean equals(Object object); int hashCode(); void setTag(int tag);  }