public void setValue(@Nullable Object value) { if (value == null && this.nullAsEmptyCollection) { super.setValue(createCollection(this.collectionType, 0)); Collection<Object> target = createCollection(this.collectionType, source.size()); for (Object elem : source) { target.add(convertElement(elem)); Collection<Object> target = createCollection(this.collectionType, length); for (int i = 0; i < length; i++) { target.add(convertElement(Array.get(value, i))); Collection<Object> target = createCollection(this.collectionType, 1); target.add(convertElement(value)); super.setValue(target);
public void setValue(@Nullable Object value) { if (value == null && this.nullAsEmptyCollection) { super.setValue(createCollection(this.collectionType, 0)); Collection<Object> target = createCollection(this.collectionType, source.size()); for (Object elem : source) { target.add(convertElement(elem)); Collection<Object> target = createCollection(this.collectionType, length); for (int i = 0; i < length; i++) { target.add(convertElement(Array.get(value, i))); Collection<Object> target = createCollection(this.collectionType, 1); target.add(convertElement(value)); super.setValue(target);
public void setValue(Object value) { if (value == null && this.nullAsEmptyCollection) { super.setValue(createCollection(this.collectionType, 0)); Collection target = createCollection(this.collectionType, source.size()); for (Object elem : source) { target.add(convertElement(elem)); Collection target = createCollection(this.collectionType, length); for (int i = 0; i < length; i++) { target.add(convertElement(Array.get(value, i))); Collection target = createCollection(this.collectionType, 1); target.add(convertElement(value)); super.setValue(target);
@Override public void setAsText(String text) throws IllegalArgumentException { if (text == null || text.isEmpty()) { super.setValue(super.createCollection(this.collectionType, 0)); } else { super.setValue(text.split(splitRegex)); } } }
@Override public void setAsText(String text) throws IllegalArgumentException { if (text == null || text.isEmpty()) { super.setValue(super.createCollection(this.collectionType, 0)); } else { super.setValue(text.split(splitRegex)); } } }
Collection target = createCollection(this.collectionType, source.size()); for (Iterator it = source.iterator(); it.hasNext();) { target.add(convertElement(it.next())); Collection target = createCollection(this.collectionType, length); for (int i = 0; i < length; i++) { target.add(convertElement(Array.get(value, i))); Collection target = createCollection(this.collectionType, 1); target.add(convertElement(value)); super.setValue(target);
public void setValue(Object value) { if (value == null && this.nullAsEmptyCollection) { super.setValue(createCollection(this.collectionType, 0)); Collection<Object> target = createCollection(this.collectionType, source.size()); for (Object elem : source) { target.add(convertElement(elem)); Collection<Object> target = createCollection(this.collectionType, length); for (int i = 0; i < length; i++) { target.add(convertElement(Array.get(value, i))); Collection<Object> target = createCollection(this.collectionType, 1); target.add(convertElement(value)); super.setValue(target);