java.lang.Object
org.bitlap.roaringbitmap.ArraysShim
Shim over JDK11 methods in Arrays to support multi-release
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanequals(char[] x, int xmin, int xmax, char[] y, int ymin, int ymax) Checks if the two arrays are equal within the given range.static intmismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Finds and returns the relative index of the first mismatch between two byte arrays over the specified ranges,otherwise return -1 if no mismatch is found.
-
构造器详细资料
-
ArraysShim
public ArraysShim()
-
-
方法详细资料
-
equals
public static boolean equals(char[] x, int xmin, int xmax, char[] y, int ymin, int ymax) Checks if the two arrays are equal within the given range.- 参数:
x- the first arrayxmin- the inclusive minimum of the range of the first arrayxmax- the exclusive maximum of the range of the first arrayy- the second arrayymin- the inclusive minimum of the range of the second arrayymax- the exclusive maximum of the range of the second array- 返回:
- true if the arrays are equal in the specified ranges
-
mismatch
public static int mismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Finds and returns the relative index of the first mismatch between two byte arrays over the specified ranges,otherwise return -1 if no mismatch is found. The index will be in the range of 0 (inclusive) up to the length (inclusive) of the smaller range.- 参数:
a- one input byte arrayaFromIndex- inclusiveaToIndex- exclusiveb- another input byte arraybFromIndex- inclusivebToIndex- exclusive- 返回:
- -1 if no mismatch found,otherwise the mismatch offset
-