Example usage for org.apache.commons.lang ArrayUtils EMPTY_BYTE_OBJECT_ARRAY

List of usage examples for org.apache.commons.lang ArrayUtils EMPTY_BYTE_OBJECT_ARRAY

Introduction

In this page you can find the example usage for org.apache.commons.lang ArrayUtils EMPTY_BYTE_OBJECT_ARRAY.

Prototype

Byte[] EMPTY_BYTE_OBJECT_ARRAY

To view the source code for org.apache.commons.lang ArrayUtils EMPTY_BYTE_OBJECT_ARRAY.

Click Source Link

Document

An empty immutable Byte array.

Usage

From source file:edu.utah.further.core.api.collections.ArrayUtil.java

/**
 * @param list/*from w w w.  ja  v a2s .c om*/
 * @return
 */
public static byte[] byteListToPrimitiveArray(final List<Byte> list) {
    return ArrayUtils.toPrimitive(list.toArray(ArrayUtils.EMPTY_BYTE_OBJECT_ARRAY));
}