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