public class DomainAlwaysInScopeMatcher extends Enableable
It supports both plain text and regular expression checks.
matches(String)
Constructor and Description |
---|
DomainAlwaysInScopeMatcher(DomainAlwaysInScopeMatcher other) |
DomainAlwaysInScopeMatcher(Pattern pattern) |
DomainAlwaysInScopeMatcher(String domain) |
Modifier and Type | Method and Description |
---|---|
static Pattern |
createPattern(String regex) |
boolean |
equals(Object object) |
String |
getValue() |
int |
hashCode() |
boolean |
isRegex() |
boolean |
matches(String domain)
Tells whether or not the given domain is considered always in scope.
|
isEnabled, setEnabled
public DomainAlwaysInScopeMatcher(Pattern pattern)
public DomainAlwaysInScopeMatcher(String domain)
public DomainAlwaysInScopeMatcher(DomainAlwaysInScopeMatcher other)
public String getValue()
public boolean isRegex()
public boolean matches(String domain)
domain
- the domain that will be checkedtrue
if the domain is considered always in scope, false
otherwise.public int hashCode()
hashCode
in class Enableable
public boolean equals(Object object)
equals
in class Enableable