public class PackagedResource extends Object implements java.util.function.Supplier<Path>
| Constructor and Description |
|---|
PackagedResource(ProjectFilesystem filesystem,
Class<?> relativeTo,
String pathRelativeToClass) |
| Modifier and Type | Method and Description |
|---|---|
Path |
get() |
Path |
getFilenamePath()
Use this combined with file hash as unique ID when hashing is enabled.
|
String |
getResourceIdentifier()
Use this as unique ID for resource when hashing is not enabled
|
public PackagedResource(ProjectFilesystem filesystem, Class<?> relativeTo, String pathRelativeToClass)
public Path get()
get in interface java.util.function.Supplier<Path>public String getResourceIdentifier()