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