com.github.zella.rxprocess2.common.ArrayUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rx-process2 Show documentation
Show all versions of rx-process2 Show documentation
rx-java2 wrapper for NuProcess
The newest version!
package com.github.zella.rxprocess2.common;
public class ArrayUtils {
public static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
public static byte[] toPrimitive(final Byte[] array) {
if (array == null) {
return null;
} else if (array.length == 0) {
return EMPTY_BYTE_ARRAY;
}
final byte[] result = new byte[array.length];
for (int i = 0; i < array.length; i++) {
result[i] = array[i];
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy