Klasse SortedCharArrays
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.SortedCharArrays
- Seit:
- 3.18
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final Comparator<char[]>static final Comparator<char[][]> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic intcompareCharArray(char[] left, char[] right) Compares the two char arrays.static intcompareCharCharArray(char[][] left, char[][] right) Compares the two char-char arrays.static <T> T[]insertIntoArray(T[] src, T[] target, T entry, int idx, int currentCount)
-
Felddetails
-
BINARY_SEARCH_THRESHOLD
public static final int BINARY_SEARCH_THRESHOLD- Siehe auch:
-
CHAR_ARR_COMPARATOR
-
CHAR_CHAR_ARR_COMPARATOR
-
-
Konstruktordetails
-
SortedCharArrays
public SortedCharArrays()
-
-
Methodendetails
-
insertIntoArray
public static <T> T[] insertIntoArray(T[] src, T[] target, T entry, int idx, int currentCount) - Parameter:
target- same as source array or new array with higher capacityidx- position for new elementcurrentCount- the current number of elements in the source array- Gibt zurück:
- given target array
-
compareCharArray
public static int compareCharArray(char[] left, char[] right) Compares the two char arrays. Longer arrays are considered to be smaller than shorter arrays. Arrays with the same length are compared char by char lexicographically.- Siehe auch:
-
compareCharCharArray
public static int compareCharCharArray(char[][] left, char[][] right) Compares the two char-char arrays. Longer arrays are considered to be smaller than shorter arrays. Arrays with the same length are compared according to the logic incompareCharArray(char[], char[]).
-