@Test public void toStringOffsetTest() throws Exception { final byte[] bytes = { (byte) 0x00, (byte) 0xDE, (byte) 0xAD, (byte) 0xBE, (byte) 0xEF, (byte) 0x00 }; final ImmutableHexWritable ihw = new ImmutableHexWritable(bytes, 1, 4); assertEquals("DEADBEEF", 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();  }