public final class PatternUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
createExtractedMap(Map<K,V> map,
Set<K> keys)
Creates a new map that contains all the entries of the
defsMap whose keys are contained in keys. |
static Definition |
replacePlaceholders(Definition d,
String name,
Object... varsOrig)
Creates a definition given its representation with wildcards and
attribute values with placeholders, replacing real values into
placeholders.
|
public static Definition replacePlaceholders(Definition d, String name, Object... varsOrig)
d - The definition to replace.name - The name of the definition to be created.varsOrig - The variables to be substituted.public static <K,V> Map<K,V> createExtractedMap(Map<K,V> map, Set<K> keys)
defsMap whose keys are contained in keys.K - The key of the map.V - The value of the map.map - The map to read.keys - The keys to extract.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.