test_class.file: imcache/src/test/java/com/cetsoft/imcache/cache/builder/HeapCacheBuilderTest.java
test_class.identifier: HeapCacheBuilderTest
test_case.body: @Test
    public void build() {
      Cache<Object, Object> cache = CacheBuilder.heapCache()
          .cacheLoader(BaseCacheBuilder.DEFAULT_CACHE_LOADER)
          .name("my-heap-cache").expiryUnit(TimeUnit.DAYS).expiry(1)
          .evictionListener(BaseCacheBuilder.DEFAULT_EVICTION_LISTENER)
          .indexHandler(DummyIndexHandler.getInstance())
          .addIndex("age", IndexType.RANGE_INDEX).capacity(1000).build();
      assertTrue(cache instanceof SearchableCache);
      assertTrue(cache instanceof HeapCache);
    }
test_case.class_method_signature: HeapCacheBuilderTest.build()
test_case.full_signature: @Test public void build()
test_case.identifier: build
test_case.invocations: build capacity addIndex indexHandler evictionListener expiry expiryUnit name cacheLoader heapCache getInstance assertTrue assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: cacheNumber = new AtomicInteger()
focal_class.modifier: private final
focal_class.original_string: private final AtomicInteger cacheNumber = new AtomicInteger();
focal_class.type: AtomicInteger
focal_class.var_name: cacheNumber
focal_class.declarator: capacity = 10000
focal_class.modifier: private
focal_class.original_string: private int capacity = 10000;
focal_class.type: int
focal_class.var_name: capacity
focal_class.declarator: expiryUnit = TimeUnit.MILLISECONDS
focal_class.modifier: private
focal_class.original_string: private TimeUnit expiryUnit = TimeUnit.MILLISECONDS;
focal_class.type: TimeUnit
focal_class.var_name: expiryUnit
focal_class.declarator: expiry = 5680281600L
focal_class.modifier: private
focal_class.original_string: private long expiry = 5680281600L;
focal_class.type: long
focal_class.var_name: expiry
focal_class.file: imcache/src/main/java/com/cetsoft/imcache/cache/builder/HeapCacheBuilder.java
focal_class.identifier: HeapCacheBuilder
focal_class.class_method_signature: HeapCacheBuilder.HeapCacheBuilder()
focal_class.full_signature: public  HeapCacheBuilder()
focal_class.identifier: HeapCacheBuilder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  HeapCacheBuilder()
focal_class.class_method_signature: HeapCacheBuilder.expiryUnit(final TimeUnit expiryUnit)
focal_class.full_signature: public HeapCacheBuilder expiryUnit(final TimeUnit expiryUnit)
focal_class.identifier: expiryUnit
focal_class.modifiers: public
focal_class.parameters: (final TimeUnit expiryUnit)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder expiryUnit(final TimeUnit expiryUnit)
focal_class.class_method_signature: HeapCacheBuilder.expiry(final long expiry)
focal_class.full_signature: public HeapCacheBuilder expiry(final long expiry)
focal_class.identifier: expiry
focal_class.modifiers: public
focal_class.parameters: (final long expiry)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder expiry(final long expiry)
focal_class.class_method_signature: HeapCacheBuilder.name(final String name)
focal_class.full_signature: public HeapCacheBuilder name(final String name)
focal_class.identifier: name
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder name(final String name)
focal_class.class_method_signature: HeapCacheBuilder.cacheLoader(final CacheLoader<K, V> cacheLoader)
focal_class.full_signature: @SuppressWarnings("unchecked") public HeapCacheBuilder cacheLoader(final CacheLoader<K, V> cacheLoader)
focal_class.identifier: cacheLoader
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final CacheLoader<K, V> cacheLoader)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder cacheLoader(final CacheLoader<K, V> cacheLoader)
focal_class.class_method_signature: HeapCacheBuilder.evictionListener(final EvictionListener<K, V> evictionListener)
focal_class.full_signature: @SuppressWarnings("unchecked") public HeapCacheBuilder evictionListener(final EvictionListener<K, V> evictionListener)
focal_class.identifier: evictionListener
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final EvictionListener<K, V> evictionListener)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder evictionListener(final EvictionListener<K, V> evictionListener)
focal_class.class_method_signature: HeapCacheBuilder.indexHandler(final IndexHandler<K, V> indexHandler)
focal_class.full_signature: @SuppressWarnings("unchecked") public synchronized HeapCacheBuilder indexHandler(final IndexHandler<K, V> indexHandler)
focal_class.identifier: indexHandler
focal_class.modifiers: @SuppressWarnings("unchecked") public synchronized
focal_class.parameters: (final IndexHandler<K, V> indexHandler)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder indexHandler(final IndexHandler<K, V> indexHandler)
focal_class.class_method_signature: HeapCacheBuilder.capacity(final int capacity)
focal_class.full_signature: public HeapCacheBuilder capacity(final int capacity)
focal_class.identifier: capacity
focal_class.modifiers: public
focal_class.parameters: (final int capacity)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder capacity(final int capacity)
focal_class.class_method_signature: HeapCacheBuilder.addIndex(final String attributeName,
        final IndexType indexType)
focal_class.full_signature: public synchronized HeapCacheBuilder addIndex(final String attributeName,
        final IndexType indexType)
focal_class.identifier: addIndex
focal_class.modifiers: public synchronized
focal_class.parameters: (final String attributeName,
        final IndexType indexType)
focal_class.return: HeapCacheBuilder
focal_class.signature: HeapCacheBuilder addIndex(final String attributeName,
        final IndexType indexType)
focal_class.class_method_signature: HeapCacheBuilder.build()
focal_class.full_signature: @SuppressWarnings("unchecked") public HeapCache<K, V> build()
focal_class.identifier: build
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: HeapCache<K, V>
focal_class.signature: HeapCache<K, V> build()
focal_class.class_method_signature: HeapCacheBuilder.build(final String name)
focal_class.full_signature: @SuppressWarnings("unchecked") public HeapCache<K, V> build(final String name)
focal_class.identifier: build
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final String name)
focal_class.return: HeapCache<K, V>
focal_class.signature: HeapCache<K, V> build(final String name)
focal_class.superclass: extends BaseCacheBuilder
focal_method.body: @SuppressWarnings("unchecked")
    public <K, V> HeapCache<K, V> build() {
      return new HeapCache<>(name, (CacheLoader<K, V>) cacheLoader,
          (EvictionListener<K, V>) evictionListener,
          (IndexHandler<K, V>) indexHandler, capacity, expiryUnit, expiry);
    }
focal_method.class_method_signature: HeapCacheBuilder.build()
focal_method.full_signature: @SuppressWarnings("unchecked") public HeapCache<K, V> build()
focal_method.identifier: build
focal_method.modifiers: @SuppressWarnings("unchecked") public
focal_method.parameters: ()
focal_method.return: HeapCache<K, V>
focal_method.signature: HeapCache<K, V> build()