com.google.common.collect.Range.class Maven / Gradle / Ivy
???? 4l 0com/google/common/collect/Range$RangeLexOrdering INSTANCE $Lcom/google/common/collect/Ordering; com/google/common/collect/Range
A(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)V
com/google/common/collect/Cut
aboveValue 7(Ljava/lang/Comparable;)Lcom/google/common/collect/Cut;
belowValue
create a(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range;
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; ! " # $ % #com/google/common/collect/BoundType OPEN %Lcom/google/common/collect/BoundType;
' ( ) belowAll !()Lcom/google/common/collect/Cut; + , - . / !com/google/common/collect/Range$1 .$SwitchMap$com$google$common$collect$BoundType [I
! 1 2 3 ordinal ()I
5 6 7 lessThan 9(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
9 : 7 atMost < java/lang/AssertionError
; > ? ()V
A B ) aboveAll
D E 7 greaterThan
G H 7 atLeast J K L ALL !Lcom/google/common/collect/Range;
N O P closed O(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range; R java/util/SortedSet Q T U V
comparator ()Ljava/util/Comparator;
X Y Z [ \ "com/google/common/collect/Ordering natural &()Lcom/google/common/collect/Ordering;
^ _ ` a b java/lang/Object equals (Ljava/lang/Object;)Z Q d e f first ()Ljava/lang/Object; h java/lang/Comparable Q j k f last m n o p q java/lang/Iterable iterator ()Ljava/util/Iterator; s t u v f java/util/Iterator next s x y z hasNext ()Z
X | } ~ min 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
X ? ? ~ max
? > ? ;com/google/common/collect/RangeGwtSerializationDependencies ? ? ?
lowerBound Lcom/google/common/collect/Cut; ? ? ?
upperBound
? ? ? compareTo "(Lcom/google/common/collect/Cut;)I ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder
? > ? Invalid range:
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ? ? toString R(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Ljava/lang/String;
? ? ? ? ()Ljava/lang/String;
? ? ? (Ljava/lang/String;)V
? ? ? endpoint ()Ljava/lang/Comparable;
? ? ? typeAsLowerBound '()Lcom/google/common/collect/BoundType;
? ? ? typeAsUpperBound
_
? ? ?
isLessThan (Ljava/lang/Comparable;)Z
? ? ? contains
? ? ? ? ? #com/google/common/collect/Iterables isEmpty (Ljava/lang/Iterable;)Z ? ;intersection is undefined for disconnected ranges %s and %s
? ? ?
checkArgument :(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? %Ranges have a nonempty intersection:
? ? ? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ,
? ? ? canonical K(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/Cut;
? ? 3 hashCode
? ? ? (I)V
? ? ? describeAsLowerBound (Ljava/lang/StringBuilder;)V ? ..
? ? ? describeAsUpperBound
_
? ? ? all #()Lcom/google/common/collect/Range; g ? ? ? (Ljava/lang/Object;)I
? ? ? apply ? com/google/common/base/Predicate ? java/io/Serializable Signature 9Lcom/google/common/collect/Range; $Lcom/google/common/collect/Cut; serialVersionUID J
ConstantValue rangeLexOrdering Code LineNumberTable l;>()Lcom/google/common/collect/Ordering;>; LocalVariableTable LocalVariableTypeTable MethodParameters ?;>(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)Lcom/google/common/collect/Range; open lower Ljava/lang/Comparable; upper TC; L;>(TC;TC;)Lcom/google/common/collect/Range;
closedOpen
openClosed range ?(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; lowerType upperType
StackMapTable ?;>(TC;Lcom/google/common/collect/BoundType;TC;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; I;>(TC;)Lcom/google/common/collect/Range; upTo ^(Ljava/lang/Comparable;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; boundType n;>(TC;Lcom/google/common/collect/BoundType;)Lcom/google/common/collect/Range; downTo F;>()Lcom/google/common/collect/Range; singleton value
encloseAll 7(Ljava/lang/Iterable;)Lcom/google/common/collect/Range; set Ljava/util/SortedSet; Ljava/util/Comparator; values Ljava/lang/Iterable;
valueIterator Ljava/util/Iterator; Ljava/util/SortedSet; Ljava/util/Comparator<*>; Ljava/lang/Iterable; Ljava/util/Iterator;" java/util/Comparator _;>(Ljava/lang/Iterable;)Lcom/google/common/collect/Range; this &Lcom/google/common/collect/Range; K(Lcom/google/common/collect/Cut;Lcom/google/common/collect/Cut;)V
hasLowerBound
lowerEndpoint ()TC; lowerBoundType
hasUpperBound
upperEndpoint upperBoundType (TC;)Z input
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; containsAll Ljava/util/SortedSet<+TC;>; Ljava/lang/Iterable<+TC;>; (Ljava/lang/Iterable<+TC;>;)Z encloses $(Lcom/google/common/collect/Range;)Z other )(Lcom/google/common/collect/Range;)Z isConnected intersection D(Lcom/google/common/collect/Range;)Lcom/google/common/collect/Range; newLower newUpper connectedRange lowerCmp I upperCmp N(Lcom/google/common/collect/Range;)Lcom/google/common/collect/Range; gap
otherRange isThisFirst Z
firstRange secondRange span M(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/Range; domain *Lcom/google/common/collect/DiscreteDomain; /Lcom/google/common/collect/DiscreteDomain; W(Lcom/google/common/collect/DiscreteDomain;)Lcom/google/common/collect/Range; object Ljava/lang/Object; $Lcom/google/common/collect/Range<*>; "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; sb Ljava/lang/StringBuilder; "Lcom/google/common/collect/Cut<*>; X(Lcom/google/common/collect/Cut<*>;Lcom/google/common/collect/Cut<*>;)Ljava/lang/String; &()Lcom/google/common/collect/Cut; readResolve compareOrThrow /(Ljava/lang/Comparable;Ljava/lang/Comparable;)I left right ?Lcom/google/common/collect/RangeGwtSerializationDependencies;Lcom/google/common/base/Predicate;Ljava/io/Serializable;
SourceFile
Range.java -Lcom/google/errorprone/annotations/Immutable; containerOf C ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations -Lcom/google/common/annotations/GwtCompatible; InnerClasses RangeLexOrdering 1 ? ? ? K L ? ? ? ? ? ? ? ? ? ? ? ? ? ? + ? \ ? ? ? ? ? ? ? ? Z
? Y*+? ? ? ? ?
? ?
? ? ?
? ?
? ? ? ? ? ? ? ? P ? \ *?
+? ? ? ? ? ? ? ? ? ? ? ? ? ? O P ? \ *? +?
? ? ? ? ? ? ? ? ? ? ? ? ? P ? \ *? +? ? ? ? ? ? ? ? ? ? ? ? ? ? P ? \ *?
+?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? :+? W-? W+? ?
*?
? *? :-? ?
,? ? ,?
:? ? ? ? ?
? ? 2 ? ? > : ? ? : % : ? : % ? ? 2 ? ? ? * : ? : ? ? 2 ? ? C ? C ? ? ?
6 7 ? G ? &*? ? ? ? ? ? ? ? ? ? ? ? ? : 7 ? G ? &*?
? ? ? ? ? ? ? ? ? ? ? ?
? ? 6? *+? 0.? &