@Test public void testFieldRow() { FieldRow f = FieldRow.create("f1", 42); assertEquals("f1", f.getFieldName()); assertEquals(42, f.getRowID()); assertEquals("", f.getRowKey()); assertEquals("FieldRow(field=f1, rowID=42, rowKey=)", f.toString()); f = FieldRow.create("f1", "forty-two"); assertEquals("f1", f.getFieldName()); assertEquals(0, f.getRowID()); assertEquals("forty-two", f.getRowKey()); assertEquals("FieldRow(field=f1, rowID=0, rowKey=forty-two)", f.toString()); }
private FieldRow(String fieldName, long rowID, String rowKey) { this.fieldName = fieldName; this.rowID = rowID; this.rowKey = rowKey; }
FieldRow { private FieldRow(String fieldName, long rowID, String rowKey) { this.fieldName = fieldName; this.rowID = rowID; this.rowKey = rowKey; } }
FieldRow { private FieldRow(String fieldName, long rowID, String rowKey) { this.fieldName = fieldName; this.rowID = rowID; this.rowKey = rowKey; } private  FieldRow(String fieldName, long rowID, String rowKey); }
FieldRow { private FieldRow(String fieldName, long rowID, String rowKey) { this.fieldName = fieldName; this.rowID = rowID; this.rowKey = rowKey; } private  FieldRow(String fieldName, long rowID, String rowKey); static FieldRow create(String fieldName, long rowID); static FieldRow create(String fieldName, String rowKey); String getFieldName(); long getRowID(); String getRowKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
FieldRow { private FieldRow(String fieldName, long rowID, String rowKey) { this.fieldName = fieldName; this.rowID = rowID; this.rowKey = rowKey; } private  FieldRow(String fieldName, long rowID, String rowKey); static FieldRow create(String fieldName, long rowID); static FieldRow create(String fieldName, String rowKey); String getFieldName(); long getRowID(); String getRowKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }