Returns a string containing all matching characters of a character sequence, in order. For example: CharMatcher.is('a').retainFrom("bazaar") ... returns "aaa".
(CharSequence sequence)
| 730 | * ... returns {@code "aaa"}. |
| 731 | */ |
| 732 | public String retainFrom(CharSequence sequence) { |
| 733 | return negate().removeFrom(sequence); |
| 734 | } |
| 735 | |
| 736 | /** |
| 737 | * Returns a string copy of the input character sequence, with each character that matches this |
no test coverage detected