public class ArrayUtils
extends java.lang.Object
Constructor and Description |
---|
ArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
bitRangeValue(byte[] b,
int offset,
int length) |
static long |
bitRangeValueLong(byte[] b,
int offset,
int length)
Returns the value of the bits in the given range.
|
static int |
byteRangeValue(byte[] b,
int offset,
int length) |
static long |
byteRangeValueLong(byte[] b,
int offset,
int length) |
static java.lang.String |
concatenate(java.lang.Object[] a,
java.lang.String delimiter) |
static boolean |
containsIgnoreCase(java.lang.String[] values,
java.lang.String value) |
static int |
indexOf(byte[] src,
byte[] target) |
static int |
indexOf(byte[] src,
int len,
byte[] target) |
static int |
indexOf(byte[] src,
int start,
int len,
byte[] target) |
static int |
indexOf(java.lang.String[] values,
java.lang.String value) |
static boolean |
isEmpty(int[] value) |
static void |
shift(java.lang.Object[] a,
int count) |
static int |
sum(int[] a) |
static double[] |
toDoubleArray(java.util.List<java.lang.Double> list) |
static java.lang.String |
toHexString(byte[] bytes) |
static java.lang.String |
toHexString(byte[] bytes,
int start,
int len) |
static int[] |
toIntArray(java.util.List<java.lang.Integer> list) |
static java.lang.String |
toPlainHexString(byte[] bytes) |
static java.lang.String |
toPlainHexString(byte[] bytes,
int start,
int len) |
static java.lang.String |
toString(byte[] bytes) |
static java.lang.String |
toString(byte[] bytes,
int start,
int len) |
public static java.lang.String toHexString(byte[] bytes)
public static java.lang.String toHexString(byte[] bytes, int start, int len)
public static java.lang.String toPlainHexString(byte[] bytes)
public static java.lang.String toPlainHexString(byte[] bytes, int start, int len)
public static java.lang.String toString(byte[] bytes)
public static java.lang.String toString(byte[] bytes, int start, int len)
public static boolean isEmpty(int[] value)
public static int indexOf(java.lang.String[] values, java.lang.String value)
public static boolean containsIgnoreCase(java.lang.String[] values, java.lang.String value)
public static int indexOf(byte[] src, byte[] target)
public static int indexOf(byte[] src, int len, byte[] target)
public static int indexOf(byte[] src, int start, int len, byte[] target)
public static long bitRangeValueLong(byte[] b, int offset, int length)
ArrayIndexOutOfBoundsException
.b
- the array of bytes.offset
- the location at which to beginlength
- the number of bits to include in the value.public static int bitRangeValue(byte[] b, int offset, int length)
public static long byteRangeValueLong(byte[] b, int offset, int length)
public static int byteRangeValue(byte[] b, int offset, int length)
public static int sum(int[] a)
public static int[] toIntArray(java.util.List<java.lang.Integer> list)
public static double[] toDoubleArray(java.util.List<java.lang.Double> list)
public static java.lang.String concatenate(java.lang.Object[] a, java.lang.String delimiter)
public static void shift(java.lang.Object[] a, int count)
Copyright © 2014 Infinite Automation Systems. All Rights Reserved.