test_class.declarator: NAME = "cache stats"
test_class.modifier: private static final
test_class.original_string: private static final String NAME = "cache stats";
test_class.type: String
test_class.var_name: NAME
test_class.declarator: KEYS = 100
test_class.modifier: private static final
test_class.original_string: private static final int KEYS = 100;
test_class.type: int
test_class.var_name: KEYS
test_class.declarator: rnd = new Random()
test_class.modifier: private final
test_class.original_string: private final Random rnd = new Random();
test_class.type: Random
test_class.var_name: rnd
test_class.declarator: store = new MemoryStore()
test_class.modifier: private final
test_class.original_string: private final MemoryStore store = new MemoryStore();
test_class.type: MemoryStore
test_class.var_name: store
test_class.declarator: cache = newRecordCache(KEYS)
test_class.modifier: private final
test_class.original_string: private final RecordCache<Integer> cache = newRecordCache(KEYS);
test_class.type: RecordCache<Integer>
test_class.var_name: cache
test_class.declarator: cacheStats =
              new RecordCacheStats(NAME,
                  new Supplier<CacheStats>() {
                      @Override public CacheStats get() { return cache.getStats(); }
                  },
                  new Supplier<Long>() {
                      @Override public Long get() { return cache.size(); }
                  },
                  new Supplier<Long>() {
                      @Override public Long get() { return cache.estimateCurrentWeight(); }
                  })
test_class.modifier: private final
test_class.original_string: private final RecordCacheStats cacheStats =
              new RecordCacheStats(NAME,
                  new Supplier<CacheStats>() {
                      @Override public CacheStats get() { return cache.getStats(); }
                  },
                  new Supplier<Long>() {
                      @Override public Long get() { return cache.size(); }
                  },
                  new Supplier<Long>() {
                      @Override public Long get() { return cache.estimateCurrentWeight(); }
                  });
test_class.type: RecordCacheStats
test_class.var_name: cacheStats
test_class.declarator: hits
test_class.modifier: private
test_class.original_string: private int hits;
test_class.type: int
test_class.var_name: hits
test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/RecordCacheStatsTest.java
test_class.identifier: RecordCacheStatsTest
test_case.body: @Test
      public void getElementCount() {
          assertEquals(KEYS, cacheStats.getElementCount());
      }
test_case.class_method_signature: RecordCacheStatsTest.getElementCount()
test_case.full_signature: @Test public void getElementCount()
test_case.identifier: getElementCount
test_case.invocations: assertEquals getElementCount
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getElementCount()
focal_class.declarator: stats
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final Supplier<CacheStats> stats;
focal_class.type: Supplier<CacheStats>
focal_class.var_name: stats
focal_class.declarator: elementCount
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final Supplier<Long> elementCount;
focal_class.type: Supplier<Long>
focal_class.var_name: elementCount
focal_class.declarator: weight
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final Supplier<Long> weight;
focal_class.type: Supplier<Long>
focal_class.var_name: weight
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/RecordCacheStats.java
focal_class.identifier: RecordCacheStats
focal_class.class_method_signature: RecordCacheStats.RecordCacheStats(
              @NotNull String name,
              @NotNull Supplier<CacheStats> stats,
              @NotNull Supplier<Long> elementCount,
              @NotNull Supplier<Long> weight)
focal_class.full_signature: public  RecordCacheStats(
              @NotNull String name,
              @NotNull Supplier<CacheStats> stats,
              @NotNull Supplier<Long> elementCount,
              @NotNull Supplier<Long> weight)
focal_class.identifier: RecordCacheStats
focal_class.modifiers: public
focal_class.parameters: (
              @NotNull String name,
              @NotNull Supplier<CacheStats> stats,
              @NotNull Supplier<Long> elementCount,
              @NotNull Supplier<Long> weight)
focal_class.signature:  RecordCacheStats(
              @NotNull String name,
              @NotNull Supplier<CacheStats> stats,
              @NotNull Supplier<Long> elementCount,
              @NotNull Supplier<Long> weight)
focal_class.class_method_signature: RecordCacheStats.getCurrentStats()
focal_class.full_signature: @Override protected CacheStats getCurrentStats()
focal_class.identifier: getCurrentStats
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: CacheStats
focal_class.signature: CacheStats getCurrentStats()
focal_class.class_method_signature: RecordCacheStats.getElementCount()
focal_class.full_signature: @Override public long getElementCount()
focal_class.identifier: getElementCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getElementCount()
focal_class.class_method_signature: RecordCacheStats.getMaxTotalWeight()
focal_class.full_signature: @Override public long getMaxTotalWeight()
focal_class.identifier: getMaxTotalWeight
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getMaxTotalWeight()
focal_class.class_method_signature: RecordCacheStats.estimateCurrentWeight()
focal_class.full_signature: @Override public long estimateCurrentWeight()
focal_class.identifier: estimateCurrentWeight
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long estimateCurrentWeight()
focal_class.superclass: extends AbstractCacheStats
focal_method.body: @Override
      public long getElementCount() {
          return elementCount.get();
      }
focal_method.class_method_signature: RecordCacheStats.getElementCount()
focal_method.full_signature: @Override public long getElementCount()
focal_method.identifier: getElementCount
focal_method.invocations: get
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: long
focal_method.signature: long getElementCount()