@Test public void testEncodeToWire() { UuidCodec codec = new UuidCodec(); UUID uuid = UUID.randomUUID(); Buffer buffer = Buffer.buffer(); codec.encodeToWire(buffer, uuid); assertThat(buffer.toString()).isEqualTo(uuid.toString()); }
@Override public void encodeToWire(Buffer buffer, UUID s) { buffer.appendString(s.toString()); }
UuidCodec implements MessageCodec<UUID, UUID> { @Override public void encodeToWire(Buffer buffer, UUID s) { buffer.appendString(s.toString()); } }
UuidCodec implements MessageCodec<UUID, UUID> { @Override public void encodeToWire(Buffer buffer, UUID s) { buffer.appendString(s.toString()); }  }
UuidCodec implements MessageCodec<UUID, UUID> { @Override public void encodeToWire(Buffer buffer, UUID s) { buffer.appendString(s.toString()); }  @Override void encodeToWire(Buffer buffer, UUID s); @Override UUID decodeFromWire(int pos, Buffer buffer); @Override UUID transform(UUID s); @Override String name(); @Override byte systemCodecID(); }
UuidCodec implements MessageCodec<UUID, UUID> { @Override public void encodeToWire(Buffer buffer, UUID s) { buffer.appendString(s.toString()); }  @Override void encodeToWire(Buffer buffer, UUID s); @Override UUID decodeFromWire(int pos, Buffer buffer); @Override UUID transform(UUID s); @Override String name(); @Override byte systemCodecID();  }