public final class jdk.internal.net.http.common.Demand
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.net.http.common.Demand
  super_class: java.lang.Object
{
  private final java.util.concurrent.atomic.AtomicLong val;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 36
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 38
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
            putfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
         2: .line 36
            return
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/net/http/common/Demand;

  public boolean increase(long);
    descriptor: (J)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // jdk.internal.net.http.common.Demand this
        start local 1 // long n
         0: .line 49
            lload 1 /* n */
            lconst_0
            lcmp
            ifgt 2
         1: .line 50
            new java.lang.IllegalArgumentException
            dup
            lload 1 /* n */
            invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 52
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            lload 1 /* n */
            invokedynamic applyAsLong()Ljava/util/function/LongBinaryOperator;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (JJ)J
                  jdk/internal/net/http/common/Demand.lambda$0(JJ)J (6)
                  (JJ)J
            invokevirtual java.util.concurrent.atomic.AtomicLong.getAndAccumulate:(JLjava/util/function/LongBinaryOperator;)J
            lstore 3 /* prev */
        start local 3 // long prev
         3: .line 53
            lload 3 /* prev */
            lconst_0
            lcmp
            ifne 4
            iconst_1
            ireturn
      StackMap locals: long
      StackMap stack:
         4: iconst_0
            ireturn
        end local 3 // long prev
        end local 1 // long n
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/internal/net/http/common/Demand;
            0    5     1     n  J
            3    5     3  prev  J
    MethodParameters:
      Name  Flags
      n     

  public boolean increaseIfFulfilled();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 61
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            lconst_0
            lconst_1
            invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
            ireturn
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/net/http/common/Demand;

  public long decreaseAndGet(long);
    descriptor: (J)J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=7, args_size=2
        start local 0 // jdk.internal.net.http.common.Demand this
        start local 1 // long n
         0: .line 77
            lload 1 /* n */
            lconst_0
            lcmp
            ifgt 2
         1: .line 78
            new java.lang.IllegalArgumentException
            dup
            lload 1 /* n */
            invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lstore 5 /* d */
        start local 5 // long d
         3: .line 83
            lload 5 /* d */
            lload 1 /* n */
            invokestatic java.lang.Math.min:(JJ)J
            lstore 3 /* p */
        start local 3 // long p
         4: .line 84
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            lload 5 /* d */
            lload 5 /* d */
            lload 3 /* p */
            lsub
            invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
            ifeq 2
         5: .line 85
            lload 3 /* p */
            lreturn
        end local 5 // long d
        end local 3 // long p
        end local 1 // long n
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljdk/internal/net/http/common/Demand;
            0    6     1     n  J
            4    6     3     p  J
            3    6     5     d  J
    MethodParameters:
      Name  Flags
      n     

  public boolean tryDecrement();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 94
            aload 0 /* this */
            lconst_1
            invokevirtual jdk.internal.net.http.common.Demand.decreaseAndGet:(J)J
            lconst_1
            lcmp
            ifne 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/net/http/common/Demand;

  public boolean isFulfilled();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 101
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lconst_0
            lcmp
            ifne 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/net/http/common/Demand;

  public void reset();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 108
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            lconst_0
            invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
         1: .line 109
            return
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/net/http/common/Demand;

  public long get();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 117
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lreturn
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/net/http/common/Demand;

  public java.lang.String toString();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.common.Demand this
         0: .line 122
            aload 0 /* this */
            getfield jdk.internal.net.http.common.Demand.val:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
            areturn
        end local 0 // jdk.internal.net.http.common.Demand this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/net/http/common/Demand;

  private static long lambda$0(long, long);
    descriptor: (JJ)J
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // long p
        start local 2 // long i
         0: .line 52
            lload 0 /* p */
            lload 2 /* i */
            ladd
            lconst_0
            lcmp
            ifge 1
            ldc 9223372036854775807
            goto 2
      StackMap locals:
      StackMap stack:
         1: lload 0 /* p */
            lload 2 /* i */
            ladd
      StackMap locals:
      StackMap stack: long
         2: lreturn
        end local 2 // long i
        end local 0 // long p
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0     p  J
            0    3     2     i  J
}
SourceFile: "Demand.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles