Package org.apache.lucene.util
Class FutureArrays
- java.lang.Object
-
- org.apache.lucene.util.FutureArrays
-
public final class FutureArrays extends Object
Additional methods from Java 9'sjava.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.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compare(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.comparestatic int
compare(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.comparestatic int
compare(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.comparestatic int
compareUnsigned(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.compareUnsignedstatic boolean
equals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.equalsstatic boolean
equals(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.equalsstatic boolean
equals(int[] a, int aFromIndex, int aToIndex, int[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.equalsstatic boolean
equals(long[] a, int aFromIndex, int aToIndex, long[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.equalsstatic int
mismatch(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.mismatchstatic int
mismatch(char[] a, int aFromIndex, int aToIndex, char[] b, int bFromIndex, int bToIndex)
Behaves like Java 9's Arrays.mismatch
-
-
-
Method Detail
-
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:
- Arrays.mismatch
-
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:
- Arrays.compareUnsigned
-
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:
- Arrays.equals
-
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:
- Arrays.mismatch
-
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:
- Arrays.compare
-
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:
- Arrays.equals
-
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:
- Arrays.compare
-
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:
- Arrays.equals
-
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:
- Arrays.compare
-
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:
- Arrays.equals
-
-