private static Collection<String> extractValues(final String value) {
        final String[] inputValues = StringUtil.splitBySpace(value);
        final Collection<String> allValues = new ArrayDeque<>();
        for (final String each : inputValues) {
            // As per Collections.addAll's doc it is faster than
            // allValues.addAll(Arrays.asList(values));
            Collections.addAll(allValues, StringUtil.strip(each));
        }
        return allValues;
    }
private static Collection<String> extractValues(final String value) {
        final String[] inputValues = StringUtil.splitBySpace(value);
        final Collection<String> allValues = new ArrayDeque<>();
        for (final String each : inputValues) {
            
            
            Collections.addAll(allValues, StringUtil.strip(each));
        }
        return allValues;
    }
private static Collection < String > extractValues ( final String value ) { final String [ ] inputValues = StringUtil . splitBySpace ( value ) ; final Collection < String > allValues = new ArrayDeque <> ( ) ; for ( final String each : inputValues ) { // As per Collections.addAll's doc it is faster than // allValues.addAll(Arrays.asList(values)); Collections . addAll ( allValues , StringUtil . strip ( each ) ) ; } return allValues ; }
/*
splits by space
/ * splits by space