/** * Create and configure a BufferCache object to the list of subresources * * @param key * The key for the BufferCache resource * @param config * The BufferCacheConsumer to use * @return this */ @SuppressWarnings("unchecked") public T bufferCache(java.lang.String childKey, BufferCacheConsumer consumer) { BufferCache<? extends BufferCache> child = new BufferCache<>(childKey); if (consumer != null) { consumer.accept(child); } bufferCache(child); return (T) this; }
/** * Create and configure a BufferCache object to the list of subresources * * @param key * The key for the BufferCache resource * @param config * The BufferCacheConsumer to use * @return this */ @SuppressWarnings("unchecked") public T bufferCache(java.lang.String childKey, BufferCacheConsumer consumer) { BufferCache<? extends BufferCache> child = new BufferCache<>(childKey); if (consumer != null) { consumer.accept(child); } bufferCache(child); return (T) this; }