code: public static CharPredicate and(final CharPredicate predicate1, final CharPredicate predicate2) {
      return new CharPredicate() {
        @Override public boolean isChar(char c) {
          return predicate1.isChar(c) && predicate2.isChar(c);
        }
        @Override public String toString() {
          return predicate1 + " and " + predicate2;
        }
      };
    }
docs: A {@link CharPredicate} that returns true if both {@code predicate1} and
  {@code predicate2} evaluates to true.