public int count(CharPredicate predicate) { return StringIterate.countChar(this.adapted, predicate); }
/** * Count the number of occurrences of the specified char. * * @since 7.0 */ public static int occurrencesOfChar(String string, final char value) { return StringIterate.countChar(string, new CharPredicate() { public boolean accept(char character) { return value == character; } }); }
/** * Count the number of elements that return true for the specified {@code predicate}. * * @deprecated since 7.0. Use {@link #countChar(String, CharPredicate)} instead. */ @Deprecated public static int count(String string, CharPredicate predicate) { return StringIterate.countChar(string, predicate); }
/** * Count the number of elements that return true for the specified {@code predicate}. * * @deprecated since 3.0. */ @Deprecated public static int count(String string, final com.gs.collections.impl.block.predicate.primitive.CharPredicate predicate) { return StringIterate.countChar(string, new CharPredicate() { public boolean accept(char value) { return predicate.accept(value); } }); }
public int count(CharPredicate predicate) { return StringIterate.countChar(this.adapted, predicate); }
/** * Count the number of occurrences of the specified char. * * @since 7.0 */ public static int occurrencesOfChar(String string, final char value) { return StringIterate.countChar(string, new CharPredicate() { public boolean accept(char character) { return value == character; } }); }
/** * Count the number of elements that return true for the specified {@code predicate}. * * @deprecated since 7.0. Use {@link #countChar(String, CharPredicate)} instead. */ @Deprecated public static int count(String string, CharPredicate predicate) { return StringIterate.countChar(string, predicate); }
/** * Count the number of elements that return true for the specified {@code predicate}. * * @deprecated since 3.0. */ @Deprecated public static int count(String string, final com.gs.collections.impl.block.predicate.primitive.CharPredicate predicate) { return StringIterate.countChar(string, new CharPredicate() { public boolean accept(char value) { return predicate.accept(value); } }); }