Set a property

@param list the list - possibly null
@param name of property
@param val of property
@return possibly newly created list
978617
@SuppressWarnings("unchecked")
  public <L extends List> L setListProperty(final L list,
                                            final String name,
                                            final String val) {
    removeProperty(list, name);
    return addListProperty(list, name, val);
  }
26962
public B addArrayParameter(final String paramName, final List<String> list) {
        for (String value : list) {
            httpParams.addParameter(paramName, value);
        }
        return self();
    }
639102
@Nonnull
    public BugInstance setProperty(String name, String value) {
        BugProperty prop = lookupProperty(name);
        if (prop != null) {
            prop.setValue(value);
        } else {
            prop = new BugProperty(name, value);
            addProperty(prop);
        }
        return this;
    }
791569
protected void put(String name, String val) {
        if (val == null) {
            row.put(name, "");
        }
        else {
            row.put(name, val);
        }
    }
1363693
public AcceptableUsagePolicyStatus setProperty(final String name, final Object value) {
        this.properties.remove(name);
        addProperty(name, value);
        return this;
    }
771941
public static <T> List<T> createWhenNull(final List<T> list) {
        if (list == null) {
            return new ArrayList<T>();
        } else {
            return list;
        }
    }
51340
public void setList(List<T> list) {
        if (list != mList) {
            mList = list;
            if (mList == null) {
                notifyInvalidated();
            } else {
                notifyChanged();
            }
        }
    }
1297454
public function set($name, $val)
    {
        $var = &$this->nestedValueRef($name, $this->data);

        // Mark changed
        if ($var !== $val) {
            $var = $val;
            $this->markChanged($name);
        }
        return $this;
    }
1263796
@SuppressWarnings("unchecked")
    public final <C extends T> PropertyList<C> getProperties(final String name) {
        final PropertyList<C> list = new PropertyList<C>();
        for (final T p : this) {
            if (p.getName().equalsIgnoreCase(name)) {
                list.add((C) p);
            }
        }
        return list;
    }
559076
public Object putValues(Object name, String[] values) 
    {
        Object list=null;
        for (int i=0;i<values.length;i++)
            list=LazyList.add(list,values[i]);
        return put(name,list);
    }
1257222
private void setHeaderList(Map<String, List<String>> headers, String name, String value) {

        List<String> values = new ArrayList<String>();
        values.add(SET_HEADER + value);
        headers.put(name, values);
    }
1137216
synchronized void setProperty(final String name, final String value) {
        Hashtable<String, String> properties = new Hashtable<String, String>(this.properties);
        properties.put(name, value);

        this.properties = properties;
    }
924052
public <T> T set( final String propertyName, final T propertyValue )
    {
        m_properties.put( propertyName, propertyValue );
        return propertyValue;
    }
186819
public static <T> Collection<T> notEmpty(Collection<T> list, String name) {
        notNull(list, name);
        if (list.isEmpty()) {
            throw new IllegalArgumentException(String.format("Collection %s is empty", name));
        }
        return list;
    }
716670
@NonNull
    public Parameters setArray(@NonNull String name, Array value) {
        return setValue(name, value);
    }
1107439
public void setList(String fieldName, List<?> value) {
		if (value == null) {
			// list默认允许传入null
			return;
		}
		fieldList.add(fieldName);
		statementParameter.setList(value);
	}
343746
public void putList(NameValuePairList nvl)
	{
		for (NameValuePair nv : nvl)
		{
			put(nv.name, nv.value);
		}
	}