use of org.jivesoftware.smackx.xdata.AbstractMultiFormField in project Smack by igniterealtime.
the class FormReader method readStringValues.
default List<String> readStringValues(String fieldName) {
FormField formField = getField(fieldName);
if (formField == null) {
return Collections.emptyList();
}
AbstractMultiFormField multiFormField = formField.ifPossibleAs(AbstractMultiFormField.class);
List<? extends CharSequence> charSequences = multiFormField.getValues();
return StringUtils.toStrings(charSequences);
}
Aggregations