ResourceHints predicates, testing whether the given hints
match the expected behavior for resources.
| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private static final ConcurrentLruCache |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Predicate | Returns: theRuntimeHints predicatethe resource bundle name bundleName)Return a predicate that checks whether a resource hint is registered for the given bundle name. |
| public Predicate | Returns: theRuntimeHints predicatethe type's package where to look for the resource type, String the resource name resourceName)Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package. |
| public Predicate | Returns: theRuntimeHints predicatethe absolute resource name resourceName)Return a predicate that checks whether a resource hint is registered for the given resource name. |
| private String |
| CACHED_RESOURCE_PATTERNS | back to summary |
|---|---|
| private static final ConcurrentLruCache<ResourcePatternHint, Pattern> CACHED_RESOURCE_PATTERNS | |
| ResourceHintsPredicates | back to summary |
|---|---|
| pack-priv ResourceHintsPredicates() | |
| forBundle | back to summary |
|---|---|
| public Predicate Return a predicate that checks whether a resource hint is registered for the given bundle name.
| |
| forResource | back to summary |
|---|---|
| public Predicate Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package. For example, If the given resource name is an absolute path (i.e., starts with a
leading slash), the supplied type will be ignored. For example,
| |
| forResource | back to summary |
|---|---|
| public Predicate Return a predicate that checks whether a resource hint is registered for the given resource name. A leading slash will be removed.
| |
| resolveAbsoluteResourceName | back to summary |
|---|---|
| private String resolveAbsoluteResourceName(TypeReference type, String resourceName) | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | excludes
Record Component accessed by excludes(). |
| private final List | includes
Record Component accessed by includes(). |
| Access | Constructor and Description |
|---|---|
| private | AggregatedResourcePatternHints(List<ResourcePatternHint> includes, List<ResourcePatternHint> excludes)
|
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public List | |
| public final int | |
| public List | |
| pack-priv static ResourceHintsPredicates. | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| excludes | back to summary |
|---|---|
| private final List<ResourcePatternHint> excludes Record Component accessed by excludes(). | |
| includes | back to summary |
|---|---|
| private final List<ResourcePatternHint> includes Record Component accessed by includes(). | |
| AggregatedResourcePatternHints | back to summary |
|---|---|
| private AggregatedResourcePatternHints(List<ResourcePatternHint> includes, List<ResourcePatternHint> excludes) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| excludes | back to summary |
|---|---|
| public List Record Component getter of excludes. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| includes | back to summary |
|---|---|
| public List Record Component getter of includes. | |
| of | back to summary |
|---|---|
| pack-priv static ResourceHintsPredicates. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |