Each pattern may be a simple path which has a one-to-one mapping to a
resource on the classpath, or alternatively may contain the special
* character to indicate a wildcard match. For example:
file.properties: matches just the file.properties
file at the root of the classpath.com/example/file.properties: matches just the
file.properties file in com/example/.*.properties: matches all the files with a .properties
extension anywhere in the classpath.com/example/*.properties: matches all the files with a .properties
extension in com/example/ and its child directories at any depth.com/example/*: matches all the files in com/example/
and its child directories at any depth.A resource pattern must not start with a slash (/) unless it is the
root directory.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final TypeReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public String | |
| public TypeReference | getReachableType()
Implements org. null if this hint should always been applied.
|
| public int | |
| public Pattern |
| pattern | back to summary |
|---|---|
| private final String pattern | |
| reachableType | back to summary |
|---|---|
| private final TypeReference reachableType
| |
| ResourcePatternHint | back to summary |
|---|---|
| pack-priv ResourcePatternHint(String pattern, TypeReference reachableType) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPattern | back to summary |
|---|---|
| public String getPattern() Return the pattern to use for identifying the resources to match.
| |
| getReachableType | back to summary |
|---|---|
| public TypeReference getReachableType() Implements org. Doc from org. Return the type that should be reachable for this hint to apply, or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toRegex | back to summary |
|---|---|
| public Pattern toRegex() Return the regex
| |