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