@Test public void testBooleanField() { BooleanField field = new BooleanField(11); field.setValue(true); assertEquals(11, field.getTag()); assertTrue(field.getValue()); field.setValue(Boolean.FALSE); assertEquals(11, field.getTag()); assertFalse(field.getValue()); field = new BooleanField(22, true); assertEquals(22, field.getTag()); assertTrue(field.getValue()); field = new BooleanField(33, Boolean.TRUE); assertEquals(33, field.getTag()); assertTrue(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);  }