public class OrCombinator extends Combinator
selectors
Constructor and Description |
---|
OrCombinator(Selector... selectors)
Creates an 'or' combinator.
|
OrCombinator(Selector selector1,
Selector selector2)
Creates an 'or' combinator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
fit(Element element)
Checks whether or not the given element fits this selector.
|
equals, getSpecificity, hashCode
public OrCombinator(Selector selector1, Selector selector2)
selector1
- the first child.selector2
- the second child.public OrCombinator(Selector... selectors)
selectors
- the list of selectors.java.lang.IllegalArgumentException
- if there is less than two selectors.