@Test public void testDoubleField() { DoubleField field = new DoubleField(11); field.setValue(12.3); assertEquals(11, field.getTag()); assertEquals(12.3, field.getValue(), 0); field.setValue(new Double(23.4)); assertEquals(11, field.getTag()); assertEquals(23.4, field.getValue(), 0); field = new DoubleField(22, 34.5); assertEquals(22, field.getTag()); assertEquals(34.5, field.getValue(), 0); field = new DoubleField(33, new Double(45.6)); assertEquals(33, field.getTag()); assertEquals(45.6, field.getValue(), 0); }
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);  }