类 ArrayUtils
java.lang.Object
com.huangjian.modbus4j.sero.util.ArrayUtils
ArrayUtils class.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intbitRangeValue(byte[] b, int offset, int length) bitRangeValue.static longbitRangeValueLong(byte[] b, int offset, int length) Returns the value of the bits in the given range.static intbyteRangeValue(byte[] b, int offset, int length) byteRangeValue.static longbyteRangeValueLong(byte[] b, int offset, int length) byteRangeValueLong.static Stringconcatenate(Object[] a, String delimiter) concatenate.static booleancontainsIgnoreCase(String[] values, String value) containsIgnoreCase.static intindexOf(byte[] src, byte[] target) indexOf.static intindexOf(byte[] src, int len, byte[] target) indexOf.static intindexOf(byte[] src, int start, int len, byte[] target) indexOf.static intindexOf.static booleanisEmpty(int[] value) isEmpty.static voidshift.static intsum(int[] a) sum.static double[]toDoubleArray(List<Double> list) toDoubleArray.static StringtoHexString(byte[] bytes) toHexString.static StringtoHexString(byte[] bytes, int start, int len) toHexString.static int[]toIntArray(List<Integer> list) toIntArray.static StringtoPlainHexString(byte[] bytes) toPlainHexString.static StringtoPlainHexString(byte[] bytes, int start, int len) toPlainHexString.static StringtoString(byte[] bytes) toString.static StringtoString(byte[] bytes, int start, int len) toString.
-
构造器详细资料
-
ArrayUtils
public ArrayUtils()
-
-
方法详细资料
-
toHexString
toHexString.
- 参数:
bytes- an array ofobjects.引用无效
byte- 返回:
- a
Stringobject.
-
toHexString
toHexString.
- 参数:
bytes- an array ofobjects.引用无效
bytestart- a int.len- a int.- 返回:
- a
Stringobject.
-
toPlainHexString
toPlainHexString.
- 参数:
bytes- an array ofobjects.引用无效
byte- 返回:
- a
Stringobject.
-
toPlainHexString
toPlainHexString.
- 参数:
bytes- an array ofobjects.引用无效
bytestart- a int.len- a int.- 返回:
- a
Stringobject.
-
toString
toString.
- 参数:
bytes- an array ofobjects.引用无效
byte- 返回:
- a
Stringobject.
-
toString
toString.
- 参数:
bytes- an array ofobjects.引用无效
bytestart- a int.len- a int.- 返回:
- a
Stringobject.
-
isEmpty
public static boolean isEmpty(int[] value) isEmpty.
- 参数:
value- an array ofobjects.引用无效
int- 返回:
- a boolean.
-
indexOf
indexOf.
-
containsIgnoreCase
containsIgnoreCase.
-
indexOf
public static int indexOf(byte[] src, byte[] target) indexOf.
- 参数:
src- an array ofobjects.引用无效
bytetarget- an array ofobjects.引用无效
byte- 返回:
- a int.
-
indexOf
public static int indexOf(byte[] src, int len, byte[] target) indexOf.
- 参数:
src- an array ofobjects.引用无效
bytelen- a int.target- an array ofobjects.引用无效
byte- 返回:
- a int.
-
indexOf
public static int indexOf(byte[] src, int start, int len, byte[] target) indexOf.
- 参数:
src- an array ofobjects.引用无效
bytestart- a int.len- a int.target- an array ofobjects.引用无效
byte- 返回:
- a int.
-
bitRangeValueLong
public static long bitRangeValueLong(byte[] b, int offset, int length) Returns the value of the bits in the given range. Ranges can extend multiple bytes. No range checking is done. Invalid ranges will result inArrayIndexOutOfBoundsException.- 参数:
b- the array of bytes.offset- the location at which to beginlength- the number of bits to include in the value.- 返回:
- the value of the bits in the range.
-
bitRangeValue
public static int bitRangeValue(byte[] b, int offset, int length) bitRangeValue.
- 参数:
b- an array ofobjects.引用无效
byteoffset- a int.length- a int.- 返回:
- a int.
-
byteRangeValueLong
public static long byteRangeValueLong(byte[] b, int offset, int length) byteRangeValueLong.
- 参数:
b- an array ofobjects.引用无效
byteoffset- a int.length- a int.- 返回:
- a long.
-
byteRangeValue
public static int byteRangeValue(byte[] b, int offset, int length) byteRangeValue.
- 参数:
b- an array ofobjects.引用无效
byteoffset- a int.length- a int.- 返回:
- a int.
-
sum
public static int sum(int[] a) sum.
- 参数:
a- an array ofobjects.引用无效
int- 返回:
- a int.
-
toIntArray
toIntArray.
- 参数:
list- aListobject.- 返回:
- an array of
objects.
引用无效
int
-
toDoubleArray
toDoubleArray.
- 参数:
list- aListobject.- 返回:
- an array of
objects.
引用无效
double
-
concatenate
concatenate.
-
shift
shift.
- 参数:
a- an array ofObjectobjects.count- a int.
-