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