@Experimental @Generated @ThreadSafe @Immutable public class FileSet extends PatternSet implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
FileSet.Builder
Builder class used to create FileSet instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getDirectory()
Describe the directory where the resources are stored.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
static FileSet.Builder |
newBuilder()
Creates a new
FileSet builder instance. |
static FileSet.Builder |
newBuilder(boolean withDefaults)
Creates a new
FileSet builder instance using default values or not. |
static FileSet.Builder |
newBuilder(FileSet from)
Creates a new
FileSet builder instance using the specified object as a basis. |
static FileSet.Builder |
newBuilder(FileSet from,
boolean forceCopy)
Creates a new
FileSet builder instance using the specified object as a basis. |
static FileSet |
newInstance()
Creates a new
FileSet instance. |
static FileSet |
newInstance(boolean withDefaults)
Creates a new
FileSet instance using default values or not. |
String |
toString() |
FileSet.Builder |
with()
Creates a new builder with this object as the basis.
|
FileSet |
withDirectory(String directory)
Creates a new
FileSet instance using the specified directory. |
FileSet |
withExcludes(Collection<String> excludes)
Creates a new
FileSet instance using the specified excludes. |
FileSet |
withIncludes(Collection<String> includes)
Creates a new
FileSet instance using the specified includes. |
getExcludes, getIncludes, newBuilder, newBuilder
public String getDirectory()
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class PatternSet
@Nonnull public FileSet.Builder with()
with
in class PatternSet
Builder
@Nonnull public FileSet withIncludes(Collection<String> includes)
FileSet
instance using the specified includes.withIncludes
in class PatternSet
includes
- the new Collection<String>
to useFileSet
with the specified includes@Nonnull public FileSet withExcludes(Collection<String> excludes)
FileSet
instance using the specified excludes.withExcludes
in class PatternSet
excludes
- the new Collection<String>
to useFileSet
with the specified excludes@Nonnull public FileSet withDirectory(String directory)
FileSet
instance using the specified directory.directory
- the new String
to useFileSet
with the specified directory@Nonnull public static FileSet newInstance()
FileSet
instance.
Equivalent to newInstance( true )
.FileSet
newInstance(boolean)
@Nonnull public static FileSet newInstance(boolean withDefaults)
FileSet
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedFileSet
@Nonnull public static FileSet.Builder newBuilder()
FileSet
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static FileSet.Builder newBuilder(boolean withDefaults)
FileSet
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static FileSet.Builder newBuilder(FileSet from)
FileSet
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the FileSet
instance to use as a basisBuilder
@Nonnull public static FileSet.Builder newBuilder(FileSet from, boolean forceCopy)
FileSet
builder instance using the specified object as a basis.from
- the FileSet
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public String toString()
toString
in class PatternSet
Object.toString()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.