Package org.apache.lucene.util
Class FutureArrays
java.lang.Object
org.apache.lucene.util.FutureArrays
Additional methods from Java 9's
java.util.Arrays.
This class will be removed when Java 9 is minimum requirement. Currently any bytecode is patched to use the Java 9 native classes through MR-JAR (Multi-Release JAR) mechanism. In Java 8 it will use THIS implementation. Because of patching, inside the Java source files we always refer to the Lucene implementations, but the final Lucene JAR files will use the native Java 9 class names when executed with Java 9.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckFromToIndex(int fromIndex, int toIndex, int length) static intcompare(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.comparestatic intcompare(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.comparestatic intcompare(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.comparestatic intcompareUnsigned(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.compareUnsignedstatic booleanequals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equalsstatic booleanequals(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equalsstatic booleanequals(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equalsstatic booleanequals(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equalsstatic intmismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.mismatchstatic intmismatch(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.mismatch
-
Constructor Details
-
FutureArrays
private FutureArrays()
-
-
Method Details
-
checkFromToIndex
private static void checkFromToIndex(int fromIndex, int toIndex, int length) -
mismatch
public static int mismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.mismatch- See Also:
-
compareUnsigned
public static int compareUnsigned(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.compareUnsigned- See Also:
-
equals
public static boolean equals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equals- See Also:
-
mismatch
public static int mismatch(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.mismatch- See Also:
-
compare
public static int compare(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.compare- See Also:
-
equals
public static boolean equals(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equals- See Also:
-
compare
public static int compare(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.compare- See Also:
-
equals
public static boolean equals(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equals- See Also:
-
compare
public static int compare(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.compare- See Also:
-
equals
public static boolean equals(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex) Behaves like Java 9's Arrays.equals- See Also:
-