@Test public void toStringTest() throws Exception { final Hex hex = new Hex(); final String str = "DEADBEEF"; final ImmutableHexWritable ihw = new ImmutableHexWritable(hex.decode(str.getBytes())); assertEquals(str, ihw.toString().toUpperCase()); }
@Override public String toString() { final byte[] bytes = copyBytes(); return new String(MyHex.encode(bytes)); }
ImmutableHexWritable extends ImmutableBytesWritable { @Override public String toString() { final byte[] bytes = copyBytes(); return new String(MyHex.encode(bytes)); } }
ImmutableHexWritable extends ImmutableBytesWritable { @Override public String toString() { final byte[] bytes = copyBytes(); return new String(MyHex.encode(bytes)); } ImmutableHexWritable();  ImmutableHexWritable(byte[] bytes);  ImmutableHexWritable(final ImmutableBytesWritable ibw);  ImmutableHexWritable(final byte[] bytes, final int offset, final int length); }
ImmutableHexWritable extends ImmutableBytesWritable { @Override public String toString() { final byte[] bytes = copyBytes(); return new String(MyHex.encode(bytes)); } ImmutableHexWritable();  ImmutableHexWritable(byte[] bytes);  ImmutableHexWritable(final ImmutableBytesWritable ibw);  ImmutableHexWritable(final byte[] bytes, final int offset, final int length); @Override String toString(); }
ImmutableHexWritable extends ImmutableBytesWritable { @Override public String toString() { final byte[] bytes = copyBytes(); return new String(MyHex.encode(bytes)); } ImmutableHexWritable();  ImmutableHexWritable(byte[] bytes);  ImmutableHexWritable(final ImmutableBytesWritable ibw);  ImmutableHexWritable(final byte[] bytes, final int offset, final int length); @Override String toString();  }