@Test public void toStringTest() { FieldValue a = FieldValue.create(15, 50000); assertEquals("15 = 50000", a.toString()); assertEquals("(default field value)", FieldValue.DEFAULT.toString()); }
@Override public String toString() { if (this.defaultFieldValue) { return "(default field value)"; } return String.format("%d %s = %d", this.columnID, this.columnKey, this.value); }
FieldValue implements Record { @Override public String toString() { if (this.defaultFieldValue) { return "(default field value)"; } return String.format("%d %s = %d", this.columnID, this.columnKey, this.value); } }
FieldValue implements Record { @Override public String toString() { if (this.defaultFieldValue) { return "(default field value)"; } return String.format("%d %s = %d", this.columnID, this.columnKey, this.value); } private  FieldValue(); }
FieldValue implements Record { @Override public String toString() { if (this.defaultFieldValue) { return "(default field value)"; } return String.format("%d %s = %d", this.columnID, this.columnKey, this.value); } private  FieldValue(); static FieldValue create(long columnID, long value); static FieldValue create(String columnKey, long value); long getColumnID(); String getColumnKey(); long getValue(); @Override long shard(long shardWidth); @Override boolean isDefault(); @Override int compareTo(Record record); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
FieldValue implements Record { @Override public String toString() { if (this.defaultFieldValue) { return "(default field value)"; } return String.format("%d %s = %d", this.columnID, this.columnKey, this.value); } private  FieldValue(); static FieldValue create(long columnID, long value); static FieldValue create(String columnKey, long value); long getColumnID(); String getColumnKey(); long getValue(); @Override long shard(long shardWidth); @Override boolean isDefault(); @Override int compareTo(Record record); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final FieldValue DEFAULT; }