Package org.onlab.util
Class ByteArraySizeHashPrinter
- java.lang.Object
 - 
- org.onlab.util.ByteArraySizeHashPrinter
 
 
- 
public final class ByteArraySizeHashPrinter extends 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 ByteArraySizeHashPrinterof(byte[] bytes)Returns ByteArraySizeHashPrinter wrapping given byte[].static ByteArraySizeHashPrinterorNull(byte[] bytes)Returns ByteArraySizeHashPrinter wrapping given byte[].StringtoString() 
 - 
 
- 
- 
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 
 
 - 
 
 -