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