下面列出了com.google.common.base.Objects.ToStringHelper#toString ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public String toString() {
ToStringHelper helper = Objects.toStringHelper(this);
helper.add("row", Bytes.toStringBinary(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()));
helper.add("family", Bytes.toString(cell.getFamilyArray(), cell.getFamilyOffset(), cell.getFamilyLength()));
helper.add("is shadow cell?", isShadowCell);
helper.add("qualifier",
Bytes.toString(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength()));
if (isShadowCell()) {
int qualifierLength = qualifierLengthFromShadowCellQualifier(cell.getQualifierArray(),
cell.getQualifierOffset(),
cell.getQualifierLength());
byte[] cellWithoutSc = removeShadowCellSuffixPrefix(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength());
helper.add("qualifier whithout shadow cell suffix", Bytes.toString(cellWithoutSc));
}
helper.add("ts", cell.getTimestamp());
return helper.toString();
}
@Override
public String toString() {
ToStringHelper helper = Objects.toStringHelper(this)
.add("challenger", this.challenger.getName())
.add("challenged", this.challenged.getName())
.add("accepted", this.isAccepted());
return helper.toString();
}
@Override
public String toString() {
final ToStringHelper helper = Objects.toStringHelper(this).omitNullValues();
helper.add("pub", Utils.bytesToHexString(pub));
helper.add("chainCode", Utils.bytesToHexString(chainCode));
helper.add("path", getPathAsString());
if (creationTimeSeconds > 0)
helper.add("creationTimeSeconds", creationTimeSeconds);
helper.add("isEncrypted", isEncrypted());
helper.add("isPubKeyOnly", isPubKeyOnly());
return helper.toString();
}
@Override
public String toString() {
ToStringHelper helper = Objects.toStringHelper(this);
helper.add("name", this.name);
helper.add("adress", this.address);
return helper.toString();
}
@Override
public String toString() {
ToStringHelper helper = Objects.toStringHelper(this);
helper.add("postCode", this.postCode);
helper.add("city", this.city);
return helper.toString();
}