public final class com.google.common.collect.Collections2
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.Collections2
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/Collections2;
public static <E> java.util.Collection<E> filter(java.util.Collection<E>, com.google.common.base.Predicate<? super E>);
descriptor: (Ljava/util/Collection;Lcom/google/common/base/Predicate;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
instanceof com.google.common.collect.Collections2$FilteredCollection
ifeq 2
1: aload 0
checkcast com.google.common.collect.Collections2$FilteredCollection
aload 1
invokevirtual com.google.common.collect.Collections2$FilteredCollection.createCombined:(Lcom/google/common/base/Predicate;)Lcom/google/common/collect/Collections2$FilteredCollection;
areturn
2: StackMap locals:
StackMap stack:
new com.google.common.collect.Collections2$FilteredCollection
dup
aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Collection
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.base.Predicate
invokespecial com.google.common.collect.Collections2$FilteredCollection.<init>:(Ljava/util/Collection;Lcom/google/common/base/Predicate;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 unfiltered Ljava/util/Collection<TE;>;
0 3 1 predicate Lcom/google/common/base/Predicate<-TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Collection<TE;>;Lcom/google/common/base/Predicate<-TE;>;)Ljava/util/Collection<TE;>;
MethodParameters:
Name Flags
unfiltered
predicate
static boolean safeContains(java.util.Collection<?>, );
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
2: ireturn
3: StackMap locals:
StackMap stack: java.lang.RuntimeException
pop
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 collection Ljava/util/Collection<*>;
0 5 1 object Ljava/lang/Object;
Exception table:
from to target type
1 2 3 Class java.lang.ClassCastException
1 2 3 Class java.lang.NullPointerException
Signature: (Ljava/util/Collection<*>;Ljava/lang/Object;)Z
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
collection
object
static boolean safeRemove(java.util.Collection<?>, );
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokeinterface java.util.Collection.remove:(Ljava/lang/Object;)Z
2: ireturn
3: StackMap locals:
StackMap stack: java.lang.RuntimeException
pop
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 collection Ljava/util/Collection<*>;
0 5 1 object Ljava/lang/Object;
Exception table:
from to target type
1 2 3 Class java.lang.ClassCastException
1 2 3 Class java.lang.NullPointerException
Signature: (Ljava/util/Collection<*>;Ljava/lang/Object;)Z
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
collection
object
public static <F, T> java.util.Collection<T> transform(java.util.Collection<F>, com.google.common.base.Function<? super F, T>);
descriptor: (Ljava/util/Collection;Lcom/google/common/base/Function;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.google.common.collect.Collections2$TransformedCollection
dup
aload 0
aload 1
invokespecial com.google.common.collect.Collections2$TransformedCollection.<init>:(Ljava/util/Collection;Lcom/google/common/base/Function;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fromCollection Ljava/util/Collection<TF;>;
0 1 1 function Lcom/google/common/base/Function<-TF;TT;>;
Signature: <F:Ljava/lang/Object;T:Ljava/lang/Object;>(Ljava/util/Collection<TF;>;Lcom/google/common/base/Function<-TF;TT;>;)Ljava/util/Collection<TT;>;
MethodParameters:
Name Flags
fromCollection
function
static boolean containsAllImpl(java.util.Collection<?>, java.util.Collection<?>);
descriptor: (Ljava/util/Collection;Ljava/util/Collection;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 2: aload 0
aload 2
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifne 4
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 self Ljava/util/Collection<*>;
0 6 1 c Ljava/util/Collection<*>;
2 4 2 o Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
self
c
static java.lang.String toStringImpl(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Collection.size:()I
invokestatic com.google.common.collect.Collections2.newStringBuilderForCollection:(I)Ljava/lang/StringBuilder;
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
astore 1
start local 1 1: iconst_1
istore 2
start local 2 2: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals: java.util.Collection java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 4: iload 2
ifne 6
5: aload 1
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals: java.util.Collection java.lang.StringBuilder int java.lang.Object java.util.Iterator
StackMap stack:
iconst_0
istore 2
7: aload 3
aload 0
if_acmpne 10
8: aload 1
ldc "(this Collection)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: goto 11
10: StackMap locals:
StackMap stack:
aload 1
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 3 11: StackMap locals: java.util.Collection java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
12: aload 1
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 collection Ljava/util/Collection<*>;
1 13 1 sb Ljava/lang/StringBuilder;
2 13 2 first Z
4 11 3 o Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;)Ljava/lang/String;
MethodParameters:
Name Flags
collection final
static java.lang.StringBuilder newStringBuilderForCollection(int);
descriptor: (I)Ljava/lang/StringBuilder;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: iload 0
ldc "size"
invokestatic com.google.common.collect.CollectPreconditions.checkNonnegative:(ILjava/lang/String;)I
pop
1: new java.lang.StringBuilder
dup
iload 0
i2l
ldc 8
lmul
ldc 1073741824
invokestatic java.lang.Math.min:(JJ)J
l2i
invokespecial java.lang.StringBuilder.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 size I
MethodParameters:
Name Flags
size
static <T> java.util.Collection<T> cast(java.lang.Iterable<T>);
descriptor: (Ljava/lang/Iterable;)Ljava/util/Collection;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
checkcast java.util.Collection
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 iterable Ljava/lang/Iterable<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Iterable<TT;>;)Ljava/util/Collection<TT;>;
MethodParameters:
Name Flags
iterable
public static <E extends java.lang.Comparable<? super E>> java.util.Collection<java.util.List<E>> orderedPermutations(java.lang.Iterable<E>);
descriptor: (Ljava/lang/Iterable;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.collect.Ordering.natural:()Lcom/google/common/collect/Ordering;
invokestatic com.google.common.collect.Collections2.orderedPermutations:(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 elements Ljava/lang/Iterable<TE;>;
Signature: <E::Ljava/lang/Comparable<-TE;>;>(Ljava/lang/Iterable<TE;>;)Ljava/util/Collection<Ljava/util/List<TE;>;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
elements
public static <E> java.util.Collection<java.util.List<E>> orderedPermutations(java.lang.Iterable<E>, java.util.Comparator<? super E>);
descriptor: (Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.google.common.collect.Collections2$OrderedPermutationCollection
dup
aload 0
aload 1
invokespecial com.google.common.collect.Collections2$OrderedPermutationCollection.<init>:(Ljava/lang/Iterable;Ljava/util/Comparator;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 elements Ljava/lang/Iterable<TE;>;
0 1 1 comparator Ljava/util/Comparator<-TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/lang/Iterable<TE;>;Ljava/util/Comparator<-TE;>;)Ljava/util/Collection<Ljava/util/List<TE;>;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
elements
comparator
public static <E> java.util.Collection<java.util.List<E>> permutations(java.util.Collection<E>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.Collections2$PermutationCollection
dup
aload 0
invokestatic com.google.common.collect.ImmutableList.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
invokespecial com.google.common.collect.Collections2$PermutationCollection.<init>:(Lcom/google/common/collect/ImmutableList;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 elements Ljava/util/Collection<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Collection<TE;>;)Ljava/util/Collection<Ljava/util/List<TE;>;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
elements
private static boolean isPermutation(java.util.List<?>, java.util.List<?>);
descriptor: (Ljava/util/List;Ljava/util/List;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.size:()I
aload 1
invokeinterface java.util.List.size:()I
if_icmpeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic com.google.common.collect.HashMultiset.create:(Ljava/lang/Iterable;)Lcom/google/common/collect/HashMultiset;
astore 2
start local 2 3: aload 1
invokestatic com.google.common.collect.HashMultiset.create:(Ljava/lang/Iterable;)Lcom/google/common/collect/HashMultiset;
astore 3
start local 3 4: aload 2
aload 3
invokeinterface com.google.common.collect.Multiset.equals:(Ljava/lang/Object;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 first Ljava/util/List<*>;
0 5 1 second Ljava/util/List<*>;
3 5 2 firstMultiset Lcom/google/common/collect/Multiset<*>;
4 5 3 secondMultiset Lcom/google/common/collect/Multiset<*>;
Signature: (Ljava/util/List<*>;Ljava/util/List<*>;)Z
MethodParameters:
Name Flags
first
second
}
SourceFile: "Collections2.java"
NestMembers:
com.google.common.collect.Collections2$FilteredCollection com.google.common.collect.Collections2$OrderedPermutationCollection com.google.common.collect.Collections2$OrderedPermutationIterator com.google.common.collect.Collections2$PermutationCollection com.google.common.collect.Collections2$PermutationIterator com.google.common.collect.Collections2$TransformedCollection
InnerClasses:
FilteredCollection = com.google.common.collect.Collections2$FilteredCollection of com.google.common.collect.Collections2
private final OrderedPermutationCollection = com.google.common.collect.Collections2$OrderedPermutationCollection of com.google.common.collect.Collections2
private final OrderedPermutationIterator = com.google.common.collect.Collections2$OrderedPermutationIterator of com.google.common.collect.Collections2
private final PermutationCollection = com.google.common.collect.Collections2$PermutationCollection of com.google.common.collect.Collections2
private PermutationIterator = com.google.common.collect.Collections2$PermutationIterator of com.google.common.collect.Collections2
TransformedCollection = com.google.common.collect.Collections2$TransformedCollection of com.google.common.collect.Collections2
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible()