/** * <p>Constructs a new CharSet using the set syntax. * Each string is merged in with the set.</p> * * @param setStrs Strings to merge into the initial set, may be null * @return a CharSet instance * @since 2.4 */ public static CharSet getInstance(String[] setStrs) { if (setStrs == null) { return null; } return new CharSet(setStrs); }
/** * <p>Creates a <code>CharSet</code> instance which allows a certain amount of * set logic to be performed.</p> * <p>The syntax is:</p> * <ul> * <li>"aeio" which implies 'a','e',..</li> * <li>"^e" implies not e.</li> * <li>"ej-m" implies e,j->m. e,j,k,l,m.</li> * </ul> * * <pre> * CharSetUtils.evaluateSet(null) = null * CharSetUtils.evaluateSet([]) = CharSet matching nothing * CharSetUtils.evaluateSet(["a-e"]) = CharSet matching a,b,c,d,e * </pre> * * @param set the set, may be null * @return a CharSet instance, <code>null</code> if null input * @deprecated Use {@link CharSet#getInstance(String[])}. * Method will be removed in Commons Lang 3.0. */ public static CharSet evaluateSet(String[] set) { if (set == null) { return null; } return new CharSet(set); }
return (CharSet) set; return new CharSet(setStr);
/** * <p>Constructs a new CharSet using the set syntax. * Each string is merged in with the set.</p> * * @param setStrs Strings to merge into the initial set, may be null * @return a CharSet instance * @since 2.4 */ public static CharSet getInstance(String[] setStrs) { if (setStrs == null) { return null; } return new CharSet(setStrs); }
/** * <p>Constructs a new CharSet using the set syntax. * Each string is merged in with the set.</p> * * @param setStrs Strings to merge into the initial set, may be null * @return a CharSet instance * @since 2.4 */ public static CharSet getInstance(String[] setStrs) { if (setStrs == null) { return null; } return new CharSet(setStrs); }
/** * <p>Constructs a new CharSet using the set syntax. * Each string is merged in with the set.</p> * * @param setStrs Strings to merge into the initial set, may be null * @return a CharSet instance * @since 2.4 */ public static CharSet getInstance(String[] setStrs) { if (setStrs == null) { return null; } return new CharSet(setStrs); }
/** * <p>Constructs a new CharSet using the set syntax. * Each string is merged in with the set.</p> * * @param setStrs Strings to merge into the initial set, may be null * @return a CharSet instance * @since 2.4 */ public static CharSet getInstance(String[] setStrs) { if (setStrs == null) { return null; } return new CharSet(setStrs); }
/** * <p>Constructs a new CharSet using the set syntax. * Each string is merged in with the set.</p> * * @param setStrs Strings to merge into the initial set, may be null * @return a CharSet instance * @since 2.4 */ public static CharSet getInstance(String[] setStrs) { if (setStrs == null) { return null; } return new CharSet(setStrs); }
/** * <p>Creates a <code>CharSet</code> instance which allows a certain amount of * set logic to be performed.</p> * <p>The syntax is:</p> * <ul> * <li>"aeio" which implies 'a','e',..</li> * <li>"^e" implies not e.</li> * <li>"ej-m" implies e,j->m. e,j,k,l,m.</li> * </ul> * * <pre> * CharSetUtils.evaluateSet(null) = null * CharSetUtils.evaluateSet([]) = CharSet matching nothing * CharSetUtils.evaluateSet(["a-e"]) = CharSet matching a,b,c,d,e * </pre> * * @param set the set, may be null * @return a CharSet instance, <code>null</code> if null input * @deprecated Use {@link CharSet#getInstance(String[])}. * Method will be removed in Commons Lang 3.0. */ public static CharSet evaluateSet(String[] set) { if (set == null) { return null; } return new CharSet(set); }
/** * <p>Creates a <code>CharSet</code> instance which allows a certain amount of * set logic to be performed.</p> * <p>The syntax is:</p> * <ul> * <li>"aeio" which implies 'a','e',..</li> * <li>"^e" implies not e.</li> * <li>"ej-m" implies e,j->m. e,j,k,l,m.</li> * </ul> * * <pre> * CharSetUtils.evaluateSet(null) = null * CharSetUtils.evaluateSet([]) = CharSet matching nothing * CharSetUtils.evaluateSet(["a-e"]) = CharSet matching a,b,c,d,e * </pre> * * @param set the set, may be null * @return a CharSet instance, <code>null</code> if null input * @deprecated Use {@link CharSet#getInstance(String[])}. * Method will be removed in Commons Lang 3.0. */ public static CharSet evaluateSet(String[] set) { if (set == null) { return null; } return new CharSet(set); }
/** * <p>Creates a <code>CharSet</code> instance which allows a certain amount of * set logic to be performed.</p> * <p>The syntax is:</p> * <ul> * <li>"aeio" which implies 'a','e',..</li> * <li>"^e" implies not e.</li> * <li>"ej-m" implies e,j->m. e,j,k,l,m.</li> * </ul> * * <pre> * CharSetUtils.evaluateSet(null) = null * CharSetUtils.evaluateSet([]) = CharSet matching nothing * CharSetUtils.evaluateSet(["a-e"]) = CharSet matching a,b,c,d,e * </pre> * * @param set the set, may be null * @return a CharSet instance, <code>null</code> if null input * @deprecated Use {@link CharSet#getInstance(String[])}. * Method will be removed in Commons Lang 3.0. */ public static CharSet evaluateSet(String[] set) { if (set == null) { return null; } return new CharSet(set); }
/** * <p>Creates a <code>CharSet</code> instance which allows a certain amount of * set logic to be performed.</p> * <p>The syntax is:</p> * <ul> * <li>"aeio" which implies 'a','e',..</li> * <li>"^e" implies not e.</li> * <li>"ej-m" implies e,j->m. e,j,k,l,m.</li> * </ul> * * <pre> * CharSetUtils.evaluateSet(null) = null * CharSetUtils.evaluateSet([]) = CharSet matching nothing * CharSetUtils.evaluateSet(["a-e"]) = CharSet matching a,b,c,d,e * </pre> * * @param set the set, may be null * @return a CharSet instance, <code>null</code> if null input * @deprecated Use {@link CharSet#getInstance(String[])}. * Method will be removed in Commons Lang 3.0. */ public static CharSet evaluateSet(String[] set) { if (set == null) { return null; } return new CharSet(set); }
/** * <p>Creates a <code>CharSet</code> instance which allows a certain amount of * set logic to be performed.</p> * <p>The syntax is:</p> * <ul> * <li>"aeio" which implies 'a','e',..</li> * <li>"^e" implies not e.</li> * <li>"ej-m" implies e,j->m. e,j,k,l,m.</li> * </ul> * * <pre> * CharSetUtils.evaluateSet(null) = null * CharSetUtils.evaluateSet([]) = CharSet matching nothing * CharSetUtils.evaluateSet(["a-e"]) = CharSet matching a,b,c,d,e * </pre> * * @param set the set, may be null * @return a CharSet instance, <code>null</code> if null input * @deprecated Use {@link CharSet#getInstance(String[])}. * Method will be removed in Commons Lang 3.0. */ public static CharSet evaluateSet(String[] set) { if (set == null) { return null; } return new CharSet(set); }
return (CharSet) set; return new CharSet(setStr);
return (CharSet) set; return new CharSet(setStr);
return (CharSet) set; return new CharSet(setStr);
return (CharSet) set; return new CharSet(setStr);
return (CharSet) set; return new CharSet(setStr);