Klasse SortedCharArrays

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.SortedCharArrays

public class SortedCharArrays extends Object
Seit:
3.18
  • Felddetails

    • BINARY_SEARCH_THRESHOLD

      public static final int BINARY_SEARCH_THRESHOLD
      Siehe auch:
    • CHAR_ARR_COMPARATOR

      public static final Comparator<char[]> CHAR_ARR_COMPARATOR
    • CHAR_CHAR_ARR_COMPARATOR

      public static final Comparator<char[][]> 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 capacity
      idx - position for new element
      currentCount - 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 in compareCharArray(char[], char[]).