public class org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl
super_class: java.lang.Object
{
public static final org.eclipse.collections.api.factory.bag.ImmutableBagFactory INSTANCE;
descriptor: Lorg/eclipse/collections/api/factory/bag/ImmutableBagFactory;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl
dup
invokespecial org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.<init>:()V
putstatic org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.INSTANCE:Lorg/eclipse/collections/api/factory/bag/ImmutableBagFactory;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> empty();
descriptor: ()Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.eclipse.collections.impl.bag.immutable.ImmutableEmptyBag.INSTANCE:Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
Signature: <T:Ljava/lang/Object;>()Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> of();
descriptor: ()Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.empty:()Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
Signature: <T:Ljava/lang/Object;>()Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> with();
descriptor: ()Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.empty:()Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
Signature: <T:Ljava/lang/Object;>()Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> of(T);
descriptor: (Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.with:(Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
0 1 1 element TT;
Signature: <T:Ljava/lang/Object;>(TT;)Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
MethodParameters:
Name Flags
element
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> with(T);
descriptor: (Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new org.eclipse.collections.impl.bag.immutable.ImmutableSingletonBag
dup
aload 1
invokespecial org.eclipse.collections.impl.bag.immutable.ImmutableSingletonBag.<init>:(Ljava/lang/Object;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
0 1 1 element TT;
Signature: <T:Ljava/lang/Object;>(TT;)Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
MethodParameters:
Name Flags
element
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> of(T[]);
descriptor: ([Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.with:([Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
0 1 1 elements [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;)Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
MethodParameters:
Name Flags
elements
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> with(T[]);
descriptor: ([Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.empty:()Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
2: StackMap locals:
StackMap stack:
aload 1
arraylength
iconst_1
if_icmpne 4
3: aload 0
aload 1
iconst_0
aaload
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.of:(Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
4: StackMap locals:
StackMap stack:
aload 1
arraylength
bipush 20
if_icmpge 6
5: aload 1
invokestatic org.eclipse.collections.impl.bag.immutable.ImmutableArrayBag.newBagWith:([Ljava/lang/Object;)Lorg/eclipse/collections/impl/bag/immutable/ImmutableArrayBag;
areturn
6: StackMap locals:
StackMap stack:
aload 1
invokestatic org.eclipse.collections.impl.bag.immutable.ImmutableHashBag.newBagWith:([Ljava/lang/Object;)Lorg/eclipse/collections/impl/bag/immutable/ImmutableHashBag;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
0 7 1 elements [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;)Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
MethodParameters:
Name Flags
elements
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> ofAll(java.lang.Iterable<? extends T>);
descriptor: (Ljava/lang/Iterable;)Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.withAll:(Ljava/lang/Iterable;)Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
0 1 1 items Ljava/lang/Iterable<+TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Iterable<+TT;>;)Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
MethodParameters:
Name Flags
items
public <T> org.eclipse.collections.api.bag.ImmutableBag<T> withAll(java.lang.Iterable<? extends T>);
descriptor: (Ljava/lang/Iterable;)Lorg/eclipse/collections/api/bag/ImmutableBag;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.eclipse.collections.api.bag.ImmutableBag
ifeq 2
1: aload 1
checkcast org.eclipse.collections.api.bag.ImmutableBag
areturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.eclipse.collections.api.bag.Bag
ifeq 11
3: aload 1
checkcast org.eclipse.collections.api.bag.Bag
astore 2
start local 2 4: aload 2
invokeinterface org.eclipse.collections.api.bag.Bag.isEmpty:()Z
ifeq 6
5: aload 0
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.with:()Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
6: StackMap locals: org.eclipse.collections.api.bag.Bag
StackMap stack:
aload 2
invokeinterface org.eclipse.collections.api.bag.Bag.size:()I
iconst_1
if_icmpne 8
7: aload 0
aload 2
invokeinterface org.eclipse.collections.api.bag.Bag.getFirst:()Ljava/lang/Object;
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.with:(Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
8: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.eclipse.collections.api.bag.Bag.sizeDistinct:()I
bipush 20
if_icmpge 10
9: aload 2
invokestatic org.eclipse.collections.impl.bag.immutable.ImmutableArrayBag.copyFrom:(Lorg/eclipse/collections/api/bag/Bag;)Lorg/eclipse/collections/impl/bag/immutable/ImmutableArrayBag;
areturn
10: StackMap locals:
StackMap stack:
new org.eclipse.collections.impl.bag.immutable.ImmutableHashBag
dup
aload 2
invokespecial org.eclipse.collections.impl.bag.immutable.ImmutableHashBag.<init>:(Lorg/eclipse/collections/api/bag/Bag;)V
areturn
end local 2 11: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.eclipse.collections.impl.utility.Iterate.toArray:(Ljava/lang/Iterable;)[Ljava/lang/Object;
invokevirtual org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl.of:([Ljava/lang/Object;)Lorg/eclipse/collections/api/bag/ImmutableBag;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/eclipse/collections/impl/bag/immutable/ImmutableBagFactoryImpl;
0 12 1 items Ljava/lang/Iterable<+TT;>;
4 11 2 bag Lorg/eclipse/collections/api/bag/Bag<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Iterable<+TT;>;)Lorg/eclipse/collections/api/bag/ImmutableBag<TT;>;
MethodParameters:
Name Flags
items
}
SourceFile: "ImmutableBagFactoryImpl.java"