public class org.terracotta.statistics.SampledStatisticAdapter<T extends java.io.Serializable> implements org.terracotta.statistics.SampledStatistic<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.terracotta.statistics.SampledStatisticAdapter
  super_class: java.lang.Object
{
  private final java.util.function.LongSupplier timeSource;
    descriptor: Ljava/util/function/LongSupplier;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.terracotta.statistics.ValueStatistic<T> statistic;
    descriptor: Lorg/terracotta/statistics/ValueStatistic;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lorg/terracotta/statistics/ValueStatistic<TT;>;

  private void <init>(org.terracotta.statistics.ValueStatistic<T>, java.util.function.LongSupplier);
    descriptor: (Lorg/terracotta/statistics/ValueStatistic;Ljava/util/function/LongSupplier;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // org.terracotta.statistics.SampledStatisticAdapter this
        start local 1 // org.terracotta.statistics.ValueStatistic statistic
        start local 2 // java.util.function.LongSupplier timeSource
         0: .line 33
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 34
            aload 0 /* this */
            aload 1 /* statistic */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.terracotta.statistics.ValueStatistic
            putfield org.terracotta.statistics.SampledStatisticAdapter.statistic:Lorg/terracotta/statistics/ValueStatistic;
         2: .line 35
            aload 0 /* this */
            aload 2 /* timeSource */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.function.LongSupplier
            putfield org.terracotta.statistics.SampledStatisticAdapter.timeSource:Ljava/util/function/LongSupplier;
         3: .line 36
            return
        end local 2 // java.util.function.LongSupplier timeSource
        end local 1 // org.terracotta.statistics.ValueStatistic statistic
        end local 0 // org.terracotta.statistics.SampledStatisticAdapter this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lorg/terracotta/statistics/SampledStatisticAdapter<TT;>;
            0    4     1   statistic  Lorg/terracotta/statistics/ValueStatistic<TT;>;
            0    4     2  timeSource  Ljava/util/function/LongSupplier;
    Signature: (Lorg/terracotta/statistics/ValueStatistic<TT;>;Ljava/util/function/LongSupplier;)V
    MethodParameters:
            Name  Flags
      statistic   
      timeSource  

  public T value();
    descriptor: ()Ljava/io/Serializable;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.terracotta.statistics.SampledStatisticAdapter this
         0: .line 40
            aload 0 /* this */
            getfield org.terracotta.statistics.SampledStatisticAdapter.statistic:Lorg/terracotta/statistics/ValueStatistic;
            invokeinterface org.terracotta.statistics.ValueStatistic.value:()Ljava/io/Serializable;
            areturn
        end local 0 // org.terracotta.statistics.SampledStatisticAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/terracotta/statistics/SampledStatisticAdapter<TT;>;
    Signature: ()TT;

  public java.util.List<org.terracotta.statistics.Sample<T>> history();
    descriptor: ()Ljava/util/List;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // org.terracotta.statistics.SampledStatisticAdapter this
         0: .line 45
            new org.terracotta.statistics.Sample
            dup
            aload 0 /* this */
            getfield org.terracotta.statistics.SampledStatisticAdapter.timeSource:Ljava/util/function/LongSupplier;
            invokeinterface java.util.function.LongSupplier.getAsLong:()J
            aload 0 /* this */
            getfield org.terracotta.statistics.SampledStatisticAdapter.statistic:Lorg/terracotta/statistics/ValueStatistic;
            invokeinterface org.terracotta.statistics.ValueStatistic.value:()Ljava/io/Serializable;
            invokespecial org.terracotta.statistics.Sample.<init>:(JLjava/io/Serializable;)V
            invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
            areturn
        end local 0 // org.terracotta.statistics.SampledStatisticAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/terracotta/statistics/SampledStatisticAdapter<TT;>;
    Signature: ()Ljava/util/List<Lorg/terracotta/statistics/Sample<TT;>;>;

  public java.util.List<org.terracotta.statistics.Sample<T>> history(long);
    descriptor: (J)Ljava/util/List;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // org.terracotta.statistics.SampledStatisticAdapter this
        start local 1 // long since
         0: .line 50
            aload 0 /* this */
            getfield org.terracotta.statistics.SampledStatisticAdapter.timeSource:Ljava/util/function/LongSupplier;
            invokeinterface java.util.function.LongSupplier.getAsLong:()J
            lstore 3 /* now */
        start local 3 // long now
         1: .line 51
            lload 1 /* since */
            lload 3 /* now */
            lcmp
            ifgt 2
            new org.terracotta.statistics.Sample
            dup
            lload 3 /* now */
            aload 0 /* this */
            getfield org.terracotta.statistics.SampledStatisticAdapter.statistic:Lorg/terracotta/statistics/ValueStatistic;
            invokeinterface org.terracotta.statistics.ValueStatistic.value:()Ljava/io/Serializable;
            invokespecial org.terracotta.statistics.Sample.<init>:(JLjava/io/Serializable;)V
            invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
            goto 3
      StackMap locals: long
      StackMap stack:
         2: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
      StackMap locals:
      StackMap stack: java.util.List
         3: areturn
        end local 3 // long now
        end local 1 // long since
        end local 0 // org.terracotta.statistics.SampledStatisticAdapter this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   this  Lorg/terracotta/statistics/SampledStatisticAdapter<TT;>;
            0    4     1  since  J
            1    4     3    now  J
    Signature: (J)Ljava/util/List<Lorg/terracotta/statistics/Sample<TT;>;>;
    MethodParameters:
       Name  Flags
      since  

  public org.terracotta.statistics.StatisticType type();
    descriptor: ()Lorg/terracotta/statistics/StatisticType;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.terracotta.statistics.SampledStatisticAdapter this
         0: .line 56
            aload 0 /* this */
            getfield org.terracotta.statistics.SampledStatisticAdapter.statistic:Lorg/terracotta/statistics/ValueStatistic;
            invokeinterface org.terracotta.statistics.ValueStatistic.type:()Lorg/terracotta/statistics/StatisticType;
            areturn
        end local 0 // org.terracotta.statistics.SampledStatisticAdapter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/terracotta/statistics/SampledStatisticAdapter<TT;>;

  public static <T extends java.io.Serializable> org.terracotta.statistics.SampledStatistic<T> sample(org.terracotta.statistics.ValueStatistic<T>, java.util.function.LongSupplier);
    descriptor: (Lorg/terracotta/statistics/ValueStatistic;Ljava/util/function/LongSupplier;)Lorg/terracotta/statistics/SampledStatistic;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.terracotta.statistics.ValueStatistic accessor
        start local 1 // java.util.function.LongSupplier timeSource
         0: .line 60
            new org.terracotta.statistics.SampledStatisticAdapter
            dup
            aload 0 /* accessor */
            aload 1 /* timeSource */
            invokespecial org.terracotta.statistics.SampledStatisticAdapter.<init>:(Lorg/terracotta/statistics/ValueStatistic;Ljava/util/function/LongSupplier;)V
            areturn
        end local 1 // java.util.function.LongSupplier timeSource
        end local 0 // org.terracotta.statistics.ValueStatistic accessor
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    1     0    accessor  Lorg/terracotta/statistics/ValueStatistic<TT;>;
            0    1     1  timeSource  Ljava/util/function/LongSupplier;
    Signature: <T::Ljava/io/Serializable;>(Lorg/terracotta/statistics/ValueStatistic<TT;>;Ljava/util/function/LongSupplier;)Lorg/terracotta/statistics/SampledStatistic<TT;>;
    MethodParameters:
            Name  Flags
      accessor    
      timeSource  
}
Signature: <T::Ljava/io/Serializable;>Ljava/lang/Object;Lorg/terracotta/statistics/SampledStatistic<TT;>;
SourceFile: "SampledStatisticAdapter.java"