public class Instruction extends Object
Constructor and Description |
---|
Instruction(String instruction,
boolean negated) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Matcher |
getMatcher(String value) |
String |
getPattern() |
static Instruction |
getPattern(String string)
Convert a string based pattern to a regular expression based pattern.
|
int |
hashCode() |
boolean |
isNegated() |
boolean |
isOptional() |
boolean |
matches(String value) |
static Map<Instruction,Map<String,String>> |
replaceWithInstruction(Map<String,Map<String,String>> header) |
static <T> Collection<T> |
select(Collection<Instruction> matchers,
Collection<T> targets) |
void |
setOptional() |
String |
toString() |
public Instruction(String instruction, boolean negated)
public boolean matches(String value)
public boolean isNegated()
public String getPattern()
public static Instruction getPattern(String string)
string
- public void setOptional()
public boolean isOptional()
public static Map<Instruction,Map<String,String>> replaceWithInstruction(Map<String,Map<String,String>> header)
public static <T> Collection<T> select(Collection<Instruction> matchers, Collection<T> targets)
Copyright © 2015 aQute SARL. All Rights Reserved.