public final class org.apache.lucene.util.SetOnce<T> implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.SetOnce
super_class: java.lang.Object
{
private final java.util.concurrent.atomic.AtomicReference<org.apache.lucene.util.SetOnce$Wrapper<T>> set;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/apache/lucene/util/SetOnce$Wrapper<TT;>;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield org.apache.lucene.util.SetOnce.set:Ljava/util/concurrent/atomic/AtomicReference;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/SetOnce<TT;>;
public void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
new org.apache.lucene.util.SetOnce$Wrapper
dup
aload 1
invokespecial org.apache.lucene.util.SetOnce$Wrapper.<init>:(Ljava/lang/Object;)V
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
putfield org.apache.lucene.util.SetOnce.set:Ljava/util/concurrent/atomic/AtomicReference;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/SetOnce<TT;>;
0 3 1 obj TT;
Signature: (TT;)V
MethodParameters:
Name Flags
obj
public final void set();
descriptor: (Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.lucene.util.SetOnce.trySet:(Ljava/lang/Object;)Z
ifne 2
1: new org.apache.lucene.util.SetOnce$AlreadySetException
dup
invokespecial org.apache.lucene.util.SetOnce$AlreadySetException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/SetOnce<TT;>;
0 3 1 obj TT;
Signature: (TT;)V
MethodParameters:
Name Flags
obj
public final boolean trySet();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.SetOnce.set:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
new org.apache.lucene.util.SetOnce$Wrapper
dup
aload 1
invokespecial org.apache.lucene.util.SetOnce$Wrapper.<init>:(Ljava/lang/Object;)V
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(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/apache/lucene/util/SetOnce<TT;>;
0 1 1 obj TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
obj
public final T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.SetOnce.set:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.apache.lucene.util.SetOnce$Wrapper
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
goto 3
StackMap locals: org.apache.lucene.util.SetOnce$Wrapper
StackMap stack:
2: aload 1
getfield org.apache.lucene.util.SetOnce$Wrapper.object:Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/util/SetOnce<TT;>;
1 4 1 wrapper Lorg/apache/lucene/util/SetOnce$Wrapper<TT;>;
Signature: ()TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/lang/Cloneable;
SourceFile: "SetOnce.java"
NestMembers:
org.apache.lucene.util.SetOnce$AlreadySetException org.apache.lucene.util.SetOnce$Wrapper
InnerClasses:
public final AlreadySetException = org.apache.lucene.util.SetOnce$AlreadySetException of org.apache.lucene.util.SetOnce
private final Wrapper = org.apache.lucene.util.SetOnce$Wrapper of org.apache.lucene.util.SetOnce