com.groupbyinc.flux.common.apache.lucene.util.ArrayUtil.class Maven / Gradle / Ivy
???? 4 7com/groupbyinc/flux/common/apache/lucene/util/ArrayUtil java/lang/Object ArrayUtil.java 9com/groupbyinc/flux/common/apache/lucene/util/ArrayUtil$1 MAX_ARRAY_LENGTH I $assertionsDisabled Z ()V
this 9Lcom/groupbyinc/flux/common/apache/lucene/util/ArrayUtil; parseInt ([CII)I java/lang/NumberFormatException ([CIII)I
chars [C offset len
chars length is 0 (Ljava/lang/String;)V
! can't convert to an int # parse ([CIIIZ)I % &
' radix i negative? java/lang/Character - digit (CI)I / 0
. 1 Unable to parse 3 next max result oversize (II)I "java/lang/IllegalArgumentException : java/lang/StringBuilder <
= invalid array size ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; A B
= C (I)Ljava/lang/StringBuilder; A E
= F toString ()Ljava/lang/String; H I
= J
; ! M requested array size O exceeds maximum array in java ( Q ) S 7com/groupbyinc/flux/common/apache/lucene/util/Constants U JRE_IS_64BIT W V X?????????
minTargetSize bytesPerElement extra newSize grow )([Ljava/lang/Object;I)[Ljava/lang/Object;
c java/lang/AssertionError e size must be positive (got g ): likely integer overflow? i (Ljava/lang/Object;)V k
f l ?com/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator n NUM_BYTES_OBJECT_REF p o q 8 9
s java/util/Arrays u copyOf w b
v x array [TT; [Ljava/lang/Object; minSize ([SI)[S w ~
v [S ([S)[S a ~
? ([FI)[F w ?
v ? [F ([F)[F a ?
? ([DI)[D w ?
v ? [D ([D)[D a ?
? ([II)[I w ?
v ? [I ([I)[I a ?
? ([JI)[J w ?
v ? [J ([J)[J a ?
? ([BI)[B w ?
v ? [B ([B)[B a ?
? ([CI)[C w ?
v ? ([C)[C a ?
? hashCode start end code equals
([BI[BII)Z left
offsetLeft right offsetRight length
([II[III)Z swap ([Ljava/lang/Object;II)V arr j tmp TT; Ljava/lang/Object; introSort .([Ljava/lang/Object;IILjava/util/Comparator;)V >com/groupbyinc/flux/common/apache/lucene/util/ArrayIntroSorter ? ,([Ljava/lang/Object;Ljava/util/Comparator;)V ?
? ? sort (II)V ? ?
? ? a fromIndex toIndex comp Ljava/util/Comparator<-TT;>; Ljava/util/Comparator; ? ?
? ([Ljava/lang/Comparable;II)V java/util/Comparator ? naturalOrder ()Ljava/util/Comparator; ? ? ? ? [Ljava/lang/Comparable; ([Ljava/lang/Comparable;)V ? ?
? timSort