Lines Matching refs:CountMethod
104 public enum CountMethod {
133 * counting by CountMethod.MIN_ELEMENTS using SpanCondition.SIMPLE.
143 return countIn(sequence, CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE);
158 public int countIn(CharSequence sequence, CountMethod countMethod) {
178 public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) {
190 if (countMethod == CountMethod.WHOLE_SPAN) {
215 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, SpanCondition.SIMPLE);
231 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition);
236 * counting by CountMethod.MIN_ELEMENTS using SpanCondition.SIMPLE.
248 return replaceFrom(sequence, replacement, CountMethod.MIN_ELEMENTS, SpanCondition.SIMPLE);
252 * Replace all matching spans in sequence by replacement, according to the CountMethod, using SpanCondition.SIMPLE.
266 public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod) {
287 public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod,
300 if (countMethod == CountMethod.WHOLE_SPAN) {
310 } else if (countMethod == CountMethod.WHOLE_SPAN) {