public static List<JBBPAbstractField> fieldsAsList(final JBBPAbstractField... fields) {
    final List<JBBPAbstractField> result = new ArrayList<>();
    Collections.addAll(result, fields);
    return result;
  }
public static List < JBBPAbstractField > fieldsAsList ( final JBBPAbstractField ... fields ) { final List < JBBPAbstractField > result = new ArrayList < > ( ) ; Collections . addAll ( result , fields ) ; return result ; }
Convert array of JBBP fields into a list.

@param fields an array of fields, must not be null
@return a list of JBBP fields