Class ToHexString
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.conversions.from_bytebuffer.ToHexString
- All Implemented Interfaces:
java.util.function.Function<java.nio.ByteBuffer,java.lang.String>
public class ToHexString
extends java.lang.Object
implements java.util.function.Function<java.nio.ByteBuffer,java.lang.String>
Converts the input ByteBuffer to a hexadecimal String.
-
Constructor Summary
Constructors Constructor Description ToHexString()Convert the ByteBuffer's contents to a hex string using upper case by default.ToHexString(boolean useUpperCase)Convert the ByteBuffer's contents to a hex string upper or lower case. -
Method Summary
Modifier and Type Method Description java.lang.Stringapply(java.nio.ByteBuffer byteBuffer)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
ToHexString
public ToHexString()Convert the ByteBuffer's contents to a hex string using upper case by default. -
ToHexString
public ToHexString(boolean useUpperCase)Convert the ByteBuffer's contents to a hex string upper or lower case.
-
-
Method Details
-
apply
public java.lang.String apply(java.nio.ByteBuffer byteBuffer)- Specified by:
applyin interfacejava.util.function.Function<java.nio.ByteBuffer,java.lang.String>
-