Returns a matcher that matches any character matched by both this matcher and other.
(CharMatcher other)
| 458 | * Returns a matcher that matches any character matched by both this matcher and {@code other}. |
| 459 | */ |
| 460 | public CharMatcher and(CharMatcher other) { |
| 461 | return new And(this, other); |
| 462 | } |
| 463 | |
| 464 | /** |
| 465 | * Returns a matcher that matches any character matched by either this matcher or {@code other}. |