com.bbn.bue.common.converters.StringToSymbolSet Maven / Gradle / Ivy
The newest version!
package com.bbn.bue.common.converters;
import com.bbn.bue.common.symbols.Symbol;
import com.bbn.bue.common.symbols.SymbolUtils;
import java.util.Set;
import static com.google.common.base.Preconditions.checkNotNull;
public class StringToSymbolSet implements StringConverter> {
public StringToSymbolSet(String delimiter) {
this.subConverter = new StringToStringSet(checkNotNull(delimiter));
}
@Override
public Set decode(String s) {
checkNotNull(s);
return SymbolUtils.setFrom(subConverter.decode(s));
}
private final StringConverter> subConverter;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy