public abstract class com.google.common.collect.ImmutableCollection<E> extends java.util.AbstractCollection<E> implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.google.common.collect.ImmutableCollection
super_class: java.util.AbstractCollection
{
static final int SPLITERATOR_CHARACTERISTICS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1296
private static final java.lang.Object[] EMPTY_ARRAY;
descriptor: [Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray java.lang.Object
putstatic com.google.common.collect.ImmutableCollection.EMPTY_ARRAY:[Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.AbstractCollection.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
public abstract com.google.common.collect.UnmodifiableIterator<E> iterator();
descriptor: ()Lcom/google/common/collect/UnmodifiableIterator;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: ()Lcom/google/common/collect/UnmodifiableIterator<TE;>;
public java.util.Spliterator<E> spliterator();
descriptor: ()Ljava/util/Spliterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 1296
invokestatic java.util.Spliterators.spliterator:(Ljava/util/Collection;I)Ljava/util/Spliterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
Signature: ()Ljava/util/Spliterator<TE;>;
public final java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.collect.ImmutableCollection.size:()I
istore 1
start local 1 1: iload 1
ifne 3
2: getstatic com.google.common.collect.ImmutableCollection.EMPTY_ARRAY:[Ljava/lang/Object;
areturn
3: StackMap locals: int
StackMap stack:
iload 1
anewarray java.lang.Object
astore 2
start local 2 4: aload 0
aload 2
iconst_0
invokevirtual com.google.common.collect.ImmutableCollection.copyIntoArray:([Ljava/lang/Object;I)I
pop
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
1 6 1 size I
4 6 2 result [Ljava/lang/Object;
public final <T> T[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual com.google.common.collect.ImmutableCollection.size:()I
istore 2
start local 2 2: aload 1
arraylength
iload 2
if_icmpge 5
3: aload 1
iload 2
invokestatic com.google.common.collect.ObjectArrays.newArray:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 1
4: goto 7
StackMap locals: int
StackMap stack:
5: aload 1
arraylength
iload 2
if_icmple 7
6: aload 1
iload 2
aconst_null
aastore
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
invokevirtual com.google.common.collect.ImmutableCollection.copyIntoArray:([Ljava/lang/Object;I)I
pop
8: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 9 1 other [Ljava/lang/Object;
2 9 2 size I
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
other
public abstract boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
object
public final boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 1 1 e TE;
Signature: (TE;)Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
e
public final boolean remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 1 1 object Ljava/lang/Object;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
object
public final boolean addAll(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 1 1 newElements Ljava/util/Collection<+TE;>;
Signature: (Ljava/util/Collection<+TE;>;)Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
newElements
public final boolean removeAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 1 1 oldElements Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
oldElements
public final boolean removeIf(java.util.function.Predicate<? super E>);
descriptor: (Ljava/util/function/Predicate;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 1 1 filter Ljava/util/function/Predicate<-TE;>;
Signature: (Ljava/util/function/Predicate<-TE;>;)Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
filter
public final boolean retainAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 1 1 elementsToKeep Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
elementsToKeep
public final void clear();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public com.google.common.collect.ImmutableList<E> asList();
descriptor: ()Lcom/google/common/collect/ImmutableList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.collect.ImmutableCollection.size:()I
tableswitch { // 0 - 1
0: 1
1: 2
default: 3
}
1: StackMap locals:
StackMap stack:
invokestatic com.google.common.collect.ImmutableList.of:()Lcom/google/common/collect/ImmutableList;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.collect.ImmutableCollection.iterator:()Lcom/google/common/collect/UnmodifiableIterator;
invokevirtual com.google.common.collect.UnmodifiableIterator.next:()Ljava/lang/Object;
invokestatic com.google.common.collect.ImmutableList.of:(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
areturn
3: StackMap locals:
StackMap stack:
new com.google.common.collect.RegularImmutableAsList
dup
aload 0
aload 0
invokevirtual com.google.common.collect.ImmutableCollection.toArray:()[Ljava/lang/Object;
invokespecial com.google.common.collect.RegularImmutableAsList.<init>:(Lcom/google/common/collect/ImmutableCollection;[Ljava/lang/Object;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
Signature: ()Lcom/google/common/collect/ImmutableList<TE;>;
abstract boolean isPartialView();
descriptor: ()Z
flags: (0x0400) ACC_ABSTRACT
int copyIntoArray(java.lang.Object[], int);
descriptor: ([Ljava/lang/Object;I)I
flags: (0x0000)
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.google.common.collect.ImmutableCollection.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: com.google.common.collect.ImmutableCollection java.lang.Object[] int top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 2: aload 1
iload 2
iinc 2 1
aload 3
aastore
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
0 5 1 dst [Ljava/lang/Object;
0 5 2 offset I
2 3 3 e TE;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
dst
offset
java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.ImmutableList$SerializedForm
dup
aload 0
invokevirtual com.google.common.collect.ImmutableCollection.toArray:()[Ljava/lang/Object;
invokespecial com.google.common.collect.ImmutableList$SerializedForm.<init>:([Ljava/lang/Object;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ImmutableCollection<TE;>;
public java.util.Iterator iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.google.common.collect.ImmutableCollection.iterator:()Lcom/google/common/collect/UnmodifiableIterator;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <E:Ljava/lang/Object;>Ljava/util/AbstractCollection<TE;>;Ljava/io/Serializable;
SourceFile: "ImmutableCollection.java"
NestMembers:
com.google.common.collect.ImmutableCollection$Builder
InnerClasses:
public abstract Builder = com.google.common.collect.ImmutableCollection$Builder of com.google.common.collect.ImmutableCollection
SerializedForm = com.google.common.collect.ImmutableList$SerializedForm of com.google.common.collect.ImmutableList
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible(emulated = true)