![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.SparseImmutableTable.class Maven / Gradle / Ivy
???? 4
/com/google/common/collect/RegularImmutableTable ()V
com/google/common/collect/Maps indexMap @(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableMap;
newLinkedHashMap ()Ljava/util/LinkedHashMap;
&com/google/common/collect/ImmutableSet iterator 2()Lcom/google/common/collect/UnmodifiableIterator; java/util/Iterator hasNext ()Z next ()Ljava/lang/Object; " java/util/LinkedHashMap
! % & ' ( )
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
+ , - . / 'com/google/common/collect/ImmutableList size ()I
+ 1 2 3 get (I)Ljava/lang/Object; 5 $com/google/common/collect/Table$Cell 4 7 8 getRowKey 4 : ; getColumnKey 4 = > getValue % @ 2 A &(Ljava/lang/Object;)Ljava/lang/Object; C java/lang/Integer
E F G H A java/util/Objects requireNonNull
B J K / intValue % ,
N O P Q R .com/google/common/collect/SparseImmutableTable checkNoDuplicate K(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V N T U V cellRowIndices [I N X Y V cellColumnInRowIndices [ .com/google/common/collect/ImmutableMap$Builder
Z ] ^ (I)V % ` a b entrySet ()Ljava/util/Set; d e f g
java/util/Set ()Ljava/util/Iterator; i java/util/Map$Entry h k l getKey h =
o p q r s &com/google/common/collect/ImmutableMap copyOf 9(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;
Z u ( v V(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
Z x y z buildOrThrow *()Lcom/google/common/collect/ImmutableMap; N | } ~ rowMap (Lcom/google/common/collect/ImmutableMap; N ? ? ~ columnMap
o ? a ? *()Lcom/google/common/collect/ImmutableSet;
? ? ? asList +()Lcom/google/common/collect/ImmutableList;
N ? ? ? cellOf ^(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/Table$Cell;
o ? ? ? values 1()Lcom/google/common/collect/ImmutableCollection;
? ? ? -com/google/common/collect/ImmutableCollection
N ? ? ? columnKeySet
N ? ? ? cellSet
,
? ? ? ? ? 7com/google/common/collect/ImmutableTable$SerializedForm create i(Lcom/google/common/collect/ImmutableTable;[I[I)Lcom/google/common/collect/ImmutableTable$SerializedForm;
N ? ? z
N ? } z
+ ? ? ? of
? ? ?
N ? ? |(Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;)V N ? ? ? EMPTY *Lcom/google/common/collect/ImmutableTable; Signature bLcom/google/common/collect/ImmutableTable; ]Lcom/google/common/collect/ImmutableMap;>; ]Lcom/google/common/collect/ImmutableMap;>; Code LineNumberTable LocalVariableTable row Ljava/lang/Object; col cell &Lcom/google/common/collect/Table$Cell; rowKey columnKey value thisRow Ljava/util/Map; oldValue i I Ljava/util/Map$Entry; this 0Lcom/google/common/collect/SparseImmutableTable; cellList )Lcom/google/common/collect/ImmutableList; rowSpace (Lcom/google/common/collect/ImmutableSet; columnSpace rowIndex rows columns
rowBuilder 0Lcom/google/common/collect/ImmutableMap$Builder;
columnBuilder LocalVariableTypeTable TR; TC; 1Lcom/google/common/collect/Table$Cell; TV; Ljava/util/Map; 1Ljava/util/Map$Entry;>; 1Ljava/util/Map$Entry;>; ;Lcom/google/common/collect/SparseImmutableTable; \Lcom/google/common/collect/ImmutableList;>; -Lcom/google/common/collect/ImmutableSet; -Lcom/google/common/collect/ImmutableSet; 'Ljava/util/Map; +Ljava/util/Map ;>; +Ljava/util/Map;>; eLcom/google/common/collect/ImmutableMap$Builder;>; eLcom/google/common/collect/ImmutableMap$Builder;>;
StackMapTable V MethodParameters ?(Lcom/google/common/collect/ImmutableList;>;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;)V F()Lcom/google/common/collect/ImmutableMap;>; F()Lcom/google/common/collect/ImmutableMap;>; getCell )(I)Lcom/google/common/collect/Table$Cell; index rowEntry columnIndex colEntry JLjava/util/Map$Entry ;>; 0Lcom/google/common/collect/ImmutableMap; Ljava/util/Map$Entry; 4(I)Lcom/google/common/collect/Table$Cell; (I)TV; writeReplace columnKeyToIndex cellColumnIndices 'Ljava/util/Map; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; ()Ljava/util/Map; zLcom/google/common/collect/RegularImmutableTable;
SourceFile SparseImmutableTable.java RuntimeVisibleAnnotations -Lcom/google/errorprone/annotations/Immutable; containerOf R C V ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; InnerClasses com/google/common/collect/Table Cell Builder Entry (com/google/common/collect/ImmutableTable SerializedForm 0 N ? ? ? ? } ~ ? ? ? ~ ? ? U V Y V
? ? ? ?*? ,? :?
:,? :? ? ? :? !Y? #? $ W??ܸ
:-? :? ? ? :? !Y? #? $ W???+? *?
:+? *?
:6 +? *? ?+ ? 0? 4:
? 6 :
? 9 :
? < :
? ? ? B? D? B? IO? ? ? %? D? %: ? L O
? $ :*
? M? ? ? %? D? %
? $ W? ??_*? S*? W? ZY? L ? \: ? _ ? c :
? ? ,
? ? h: ? j ? m ? %? n? tW???* ? w? {? ZY? L ? \:
? _ ? c :? ? ,? ? h:
? j ? m ? %? n? tW???*
? w? ? ? ? ' 3 4
5 6 ( 7 9 8 <