Package de.xima.fc.common.filesystem
Interface IFileSystemEntryFactory<Entry extends IFileSystemEntry<Entry>>
-
- Type Parameters:
Entry
- The type of the file system entry.
- All Superinterfaces:
BiFunction<String,String,Entry>
,Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IFileSystemEntryFactory<Entry extends IFileSystemEntry<Entry>> extends Serializable, BiFunction<String,String,Entry>
Factory for creating file system entries.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Entry
apply(String volume, String path)
Entry
forVolumeAndPath(String volume, String path)
Creates a new file system entry for the given volume and file or directory path.-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
default Entry apply(String volume, String path)
- Specified by:
apply
in interfaceBiFunction<String,String,Entry extends IFileSystemEntry<Entry>>
-
forVolumeAndPath
Entry forVolumeAndPath(String volume, String path)
Creates a new file system entry for the given volume and file or directory path.- Parameters:
volume
- The volume name.path
- The file or directory path of the file in the volume. Empty for the root directory.- Returns:
- The new file system entry.
-
-