public final class SplitterFunction extends Object implements com.google.common.base.Function<Set<String>,Set<String>>
Convert a set of delimited strings into an immutable set of individual elements.
A set containing these two strings:java.class.path java.class.versionConverts to a set containing these four strings:
java java.class java.class.path java.class.version
Constructor and Description |
---|
SplitterFunction() |
SplitterFunction(String separator) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
apply(Set<String> strings)
Convert a set of delimited strings into an immutable set of individual elements.
|
protected Set<String> |
apply(String string)
Convert a delimited string into a set of individual elements.
|
String |
getSeparator() |
com.google.common.base.Splitter |
getSplitter() |
public SplitterFunction()
public SplitterFunction(String separator)
public Set<String> apply(Set<String> strings)
Convert a set of delimited strings into an immutable set of individual elements.
A set containing these two strings:java.class.path java.class.versionConverts to a set containing these four strings:
java java.class java.class.path java.class.version
apply
in interface com.google.common.base.Function<Set<String>,Set<String>>
IllegalArgumentException
- If splitting the individual strings into elements produces blank tokensNullPointerException
- If strings is null or contains null elementsprotected Set<String> apply(String string)
java.class.path -> java java.class java.class.path
IllegalArgumentException
- If splitting the string into elements produces blank tokenspublic String getSeparator()
public com.google.common.base.Splitter getSplitter()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.