Package org.onlab.util
Class ByteArraySizeHashPrinter
- java.lang.Object
-
- org.onlab.util.ByteArraySizeHashPrinter
-
public final class ByteArraySizeHashPrinter extends java.lang.Object
Helper to print byte[] length and hashCode.
-
-
Constructor Summary
Constructors Constructor Description ByteArraySizeHashPrinter(byte[] bytes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ByteArraySizeHashPrinter
of(byte[] bytes)
Returns ByteArraySizeHashPrinter wrapping given byte[].static ByteArraySizeHashPrinter
orNull(byte[] bytes)
Returns ByteArraySizeHashPrinter wrapping given byte[].java.lang.String
toString()
-
-
-
Method Detail
-
of
public static ByteArraySizeHashPrinter of(byte[] bytes)
Returns ByteArraySizeHashPrinter wrapping given byte[].- Parameters:
bytes
- bytes to wrap around- Returns:
- ByteArraySizeHashPrinter
-
orNull
public static ByteArraySizeHashPrinter orNull(byte[] bytes)
Returns ByteArraySizeHashPrinter wrapping given byte[].- Parameters:
bytes
- bytes to wrap around- Returns:
- null if
bytes == null
, ByteArraySizeHashPrinter otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-