PdxField implements DataSerializable, Comparable<PdxField> { @Override public String toString() { return this.fieldName + ":" + this.type + (isDeleted() ? ":DELETED" : "") + (isIdentityField() ? ":identity" : "") + ":" + this.fieldIndex + ((this.varLenFieldSeqId > 0) ? (":" + this.varLenFieldSeqId) : "") + ":idx0(relativeOffset)=" + this.relativeOffset + ":idx1(vlfOffsetIndex)=" + this.vlfOffsetIndex; } PdxField();  PdxField(String fieldName, int index, int varId, FieldType type, boolean identityField); protected  PdxField(PdxField other); String getFieldName(); int getFieldIndex(); int getVarLenFieldSeqId(); boolean isVariableLengthType(); FieldType getFieldType(); int getRelativeOffset(); void setRelativeOffset(int relativeOffset); int getVlfOffsetIndex(); void setVlfOffsetIndex(int vlfOffsetIndex); void setIdentityField(boolean identityField); boolean isIdentityField(); void setDeleted(boolean v); boolean isDeleted(); @Override void fromData(DataInput in); @Override void toData(DataOutput out); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); String getTypeIdString(); @Override int compareTo(PdxField o); void toStream(PrintStream printStream);  }
@Test public void testToString() { final PdxField field = new PdxField(FIELD_NAME, FIELD_INDEX, VAR_LEN_FIELD_SEQ_ID, FIELD_TYPE, IDENTITY_FIELD); assertEquals(0, field.toString().indexOf(FIELD_NAME)); }