Lines Matching defs:values

416      * Add all the values contained in the specified map <var>t</var>
418 * the collection of values contained in this map into an array of
419 * <tt>CompositeData</tt> values, if possible, and then call the
426 * @param t the map whose values are to be added as new rows to
442 * values in <var>t</var> have the same index.
452 // Convert the values in t into an array of <tt>CompositeData</tt>
454 CompositeData[] values;
456 values =
457 t.values().toArray(new CompositeData[t.size()]);
459 throw new ClassCastException("Map argument t contains values which are not instances of <tt>CompositeData</tt>");
462 // Add the array of values
464 putAll(values);
468 * Add all the elements in <var>values</var> to this
470 * <var>values</var> does not satisfy the constraints defined in
472 * elements in <var>values</var> have the same index calculated
475 * the failure is thrown and no element of <var>values</var> is
479 * @param values the array of composite data values to be added as
481 * <var>values</var> is <tt>null</tt> or empty, this method
484 * @throws NullPointerException if an element of <var>values</var>
487 * <var>values</var> does not conform to this
491 * of <var>values</var>, calculated according to this
494 * elements of <var>values</var> have the same index
496 public void putAll(CompositeData[] values) {
498 // if values is null or empty, just return
500 if ( (values == null) || (values.length == 0) ) {
506 new ArrayList<List<?>>(values.length + 1);
508 // Check all elements in values and build index list
511 for (int i=0; i<values.length; i++) {
513 index = checkValueAndIndex(values[i]);
516 throw new KeyAlreadyExistsException("Argument elements values["+ i +"] and values["+ indexes.indexOf(index) +
526 for (int i=0; i<values.length; i++) {
527 dataMap.put(indexes.get(i), values[i]);
597 * The returned collection can be used to iterate over the values.
610 * the values contained in this {@code TabularDataSupport} instance.
613 public Collection<Object> values() {
615 return Util.cast(dataMap.values());
661 * Only a shallow clone of the underlying map is made, i.e. no cloning of the indexes and row values is made as they are immutable.
687 * <li>their contents (ie all CompositeData values) are equal.</li>
723 // . values in this instance are in the other (we know there are no duplicate elements possible)
724 // (row values comparison is enough, because keys are calculated according to tabularType)
729 for (CompositeData value : dataMap.values()) {
745 * (ie: its <i>tabular type</i> and its content, where the content is defined as all the CompositeData values).
763 for (Object value : values())
833 " is different from the number of item values, which is "+ indexNamesArray.length +