Java com.google.common.primitives Bytes fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.primitives Bytes fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.primitives Bytes.

The text is from its open source code.

Method

ListasList(byte... backingArray)
Returns a fixed-size list backed by the specified array, similar to Arrays#asList(Object[]) .
byte[]concat(byte[]... arrays)
Returns the values from each provided array combined into a single array.
booleancontains(byte[] array, byte target)
Returns true if target is present as an element anywhere in array .
byte[]ensureCapacity(byte[] array, int minLength, int padding)
Returns an array containing the same values as array , but guaranteed to be of a specified minimum length.
inthashCode(byte value)
Returns a hash code for value ; equal to the result of invoking ((Byte) value).hashCode() .
intindexOf(byte[] array, byte target)
Returns the index of the first appearance of the value target in array .
intindexOf(byte[] array, byte[] target)
Returns the start position of the first occurrence of the specified target within array , or -1 if there is no such occurrence.
intlastIndexOf(byte[] array, byte target)
Returns the index of the last appearance of the value target in array .
byte[]toArray(Collection collection)
Returns an array containing each value of collection , converted to a byte value in the manner of Number#byteValue .