Lines Matching refs:fieldNames
73 public ImmutableDescriptor(String[] fieldNames, Object[] fieldValues) {
74 this(makeMap(fieldNames, fieldValues));
155 private static SortedMap<String, ?> makeMap(String[] fieldNames,
157 if (fieldNames == null || fieldValues == null)
159 if (fieldNames.length != fieldValues.length)
163 for (int i = 0; i < fieldNames.length; i++) {
164 String name = fieldNames[i];
179 String[] fieldNames = new String[fields.length];
188 fieldNames[i] = field.substring(0, eq);
192 return makeMap(fieldNames, fieldValues);
326 public final Object[] getFieldValues(String... fieldNames) {
327 if (fieldNames == null)
329 Object[] result = new Object[fieldNames.length];
330 for (int i = 0; i < fieldNames.length; i++) {
331 String name = fieldNames[i];
484 public final void setFields(String[] fieldNames, Object[] fieldValues)
486 if (fieldNames == null || fieldValues == null)
488 if (fieldNames.length != fieldValues.length)
490 for (int i = 0; i < fieldNames.length; i++)
491 checkIllegalFieldName(fieldNames[i]);
492 for (int i = 0; i < fieldNames.length; i++)
493 setField(fieldNames[i], fieldValues[i]);