final class org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet<T> extends org.eclipse.collections.impl.set.immutable.AbstractImmutableSet<T> implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet
super_class: org.eclipse.collections.impl.set.immutable.AbstractImmutableSet
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final T element1;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TT;
void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.eclipse.collections.impl.set.immutable.AbstractImmutableSet.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 3 1 obj1 TT;
Signature: (TT;)V
MethodParameters:
Name Flags
obj1
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.util.Set
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast java.util.Set
astore 2
start local 2 5: aload 2
invokeinterface java.util.Set.size:()I
aload 0
invokevirtual org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.size:()I
if_icmpne 6
aload 2
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: java.util.Set
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 7 1 other Ljava/lang/Object;
5 7 2 set Ljava/util/Set<*>;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
invokevirtual org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.nullSafeHashCode:(Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
public org.eclipse.collections.api.set.ImmutableSet<T> newWith(T);
descriptor: (Ljava/lang/Object;)Lorg/eclipse/collections/api/set/ImmutableSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.contains:(Ljava/lang/Object;)Z
ifne 2
1: getstatic org.eclipse.collections.api.factory.Sets.immutable:Lorg/eclipse/collections/api/factory/set/ImmutableSetFactory;
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
aload 1
invokeinterface org.eclipse.collections.api.factory.set.ImmutableSetFactory.with:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/eclipse/collections/api/set/ImmutableSet;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 3 1 element TT;
Signature: (TT;)Lorg/eclipse/collections/api/set/ImmutableSet<TT;>;
MethodParameters:
Name Flags
element
public org.eclipse.collections.api.set.ImmutableSet<T> newWithout(T);
descriptor: (Ljava/lang/Object;)Lorg/eclipse/collections/api/set/ImmutableSet;
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.set.immutable.ImmutableSingletonSet.contains:(Ljava/lang/Object;)Z
ifeq 2
1: getstatic org.eclipse.collections.api.factory.Sets.immutable:Lorg/eclipse/collections/api/factory/set/ImmutableSetFactory;
invokeinterface org.eclipse.collections.api.factory.set.ImmutableSetFactory.empty:()Lorg/eclipse/collections/api/set/ImmutableSet;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 3 1 element TT;
Signature: (TT;)Lorg/eclipse/collections/api/set/ImmutableSet<TT;>;
MethodParameters:
Name Flags
element
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 1 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public java.util.Iterator<T> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet$SingletonSetIterator
dup
aload 0
invokespecial org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet$SingletonSetIterator.<init>:(Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
Signature: ()Ljava/util/Iterator<TT;>;
public T getFirst();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
Signature: ()TT;
public T getLast();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
Signature: ()TT;
public T getOnly();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
Signature: ()TT;
public void each(org.eclipse.collections.api.block.procedure.Procedure<? super T>);
descriptor: (Lorg/eclipse/collections/api/block/procedure/Procedure;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
invokeinterface org.eclipse.collections.api.block.procedure.Procedure.value:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 2 1 procedure Lorg/eclipse/collections/api/block/procedure/Procedure<-TT;>;
Signature: (Lorg/eclipse/collections/api/block/procedure/Procedure<-TT;>;)V
MethodParameters:
Name Flags
procedure
public void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T>);
descriptor: (Lorg/eclipse/collections/api/block/procedure/primitive/ObjectIntProcedure;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
iconst_0
invokeinterface org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure.value:(Ljava/lang/Object;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 2 1 objectIntProcedure Lorg/eclipse/collections/api/block/procedure/primitive/ObjectIntProcedure<-TT;>;
Signature: (Lorg/eclipse/collections/api/block/procedure/primitive/ObjectIntProcedure<-TT;>;)V
MethodParameters:
Name Flags
objectIntProcedure
public <P> void forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super T, ? super P>, );
descriptor: (Lorg/eclipse/collections/api/block/procedure/Procedure2;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
getfield org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.element1:Ljava/lang/Object;
aload 2
invokeinterface org.eclipse.collections.api.block.procedure.Procedure2.value:(Ljava/lang/Object;Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
0 2 1 procedure Lorg/eclipse/collections/api/block/procedure/Procedure2<-TT;-TP;>;
0 2 2 parameter TP;
Signature: <P:Ljava/lang/Object;>(Lorg/eclipse/collections/api/block/procedure/Procedure2<-TT;-TP;>;TP;)V
MethodParameters:
Name Flags
procedure
parameter
private java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.eclipse.collections.impl.set.immutable.ImmutableSetSerializationProxy
dup
aload 0
invokespecial org.eclipse.collections.impl.set.immutable.ImmutableSetSerializationProxy.<init>:(Lorg/eclipse/collections/api/set/ImmutableSet;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/set/immutable/ImmutableSingletonSet<TT;>;
public org.eclipse.collections.api.collection.ImmutableCollection newWithout(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/eclipse/collections/api/collection/ImmutableCollection;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Object
invokevirtual org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.newWithout:(Ljava/lang/Object;)Lorg/eclipse/collections/api/set/ImmutableSet;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.eclipse.collections.api.collection.ImmutableCollection newWith(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/eclipse/collections/api/collection/ImmutableCollection;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Object
invokevirtual org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet.newWith:(Ljava/lang/Object;)Lorg/eclipse/collections/api/set/ImmutableSet;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Lorg/eclipse/collections/impl/set/immutable/AbstractImmutableSet<TT;>;Ljava/io/Serializable;
SourceFile: "ImmutableSingletonSet.java"
NestMembers:
org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet$SingletonSetIterator
InnerClasses:
private SingletonSetIterator = org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet$SingletonSetIterator of org.eclipse.collections.impl.set.immutable.ImmutableSingletonSet