| Package | Description |
|---|---|
| org.bitbucket.cowwoc.requirements |
Interfaces in this package are not meant to be extended (because they extend
Isolatable),
but may be implemented. |
| Modifier and Type | Method and Description |
|---|---|
static PathRequirements |
Requirements.assertThat(Path parameter,
String name)
Same as
Requirements.requireThat(Path, String) but does nothing if assertions are disabled for this
class. |
PathRequirements |
PathRequirements.exists()
Ensures that a path exists.
|
PathRequirements |
PathRequirements.isAbsolute()
Ensures that a path is absolute.
|
PathRequirements |
PathRequirements.isDirectory(LinkOption... options)
Ensures that a path refers to a directory.
|
PathRequirements |
PathRequirements.isRegularFile(LinkOption... options)
Ensures that a path refers to a regular file.
|
PathRequirements |
PathRequirements.isRelative()
Ensures that a path is relative.
|
static PathRequirements |
Requirements.requireThat(Path parameter,
String name)
Creates requirements for a
Path. |
PathRequirements |
Assertions.requireThat(Path parameter,
String name)
Same as
Requirements.requireThat(Path, String) but does nothing if assertions are
disabled. |
Copyright © 2016. All rights reserved.