@Test public void testToString() { final BlobRef blobRef = new BlobRef("node", "store", "blobId"); final String spec = blobRef.toString(); final BlobRef reconstituted = BlobRef.parse(spec); assertThat(reconstituted, is(equalTo(blobRef))); }
public String toString() { return String.format("%s@%s:%s", getStore(), getNode(), getBlob()); }
BlobRef { public String toString() { return String.format("%s@%s:%s", getStore(), getNode(), getBlob()); } }
BlobRef { public String toString() { return String.format("%s@%s:%s", getStore(), getNode(), getBlob()); } BlobRef(final String node, final String store, final String blob); }
BlobRef { public String toString() { return String.format("%s@%s:%s", getStore(), getNode(), getBlob()); } BlobRef(final String node, final String store, final String blob); String getNode(); String getStore(); String getBlob(); BlobId getBlobId(); static BlobRef parse(final String spec); String toString(); @Override boolean equals(final Object o); @Override int hashCode(); }
BlobRef { public String toString() { return String.format("%s@%s:%s", getStore(), getNode(), getBlob()); } BlobRef(final String node, final String store, final String blob); String getNode(); String getStore(); String getBlob(); BlobId getBlobId(); static BlobRef parse(final String spec); String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static final Pattern BLOB_REF_PATTERN; }