Shortcut method to add a numeric value

@param nIndex
The index where the member should be added. Must be &ge; 0.
@param fValue
The value to be added.
@return this
5675
@Nonnull
  public CSSExpression addNumber (@Nonnegative final int nIndex, final float fValue)
  {
    return addMember (nIndex, new CSSExpressionMemberTermSimple (fValue));
  }
292802
public ElementDefinitionDt addCondition(IdDt theValue) {
		if (theValue == null) {
			throw new NullPointerException("theValue must not be null");
		}
		getCondition().add(theValue);
		return this;
	}
111724
public ElementDefinitionDt addType(Type theValue) {
		if (theValue == null) {
			throw new NullPointerException("theValue must not be null");
		}
		getType().add(theValue);
		return this;
	}
1326480
public RangeDistributionBuilder add(Number value, int count) {
    if (greaterOrEqualsThan(value, bottomLimits[0])) {
      addValue(value, count);
      isEmpty = false;
    }
    return this;
  }
61077
public static function addBitInt(&$srcValue,$intValue)
    {
        if(empty($srcValue)){
            $srcValue = $intValue;
        }
        else if(($srcValue&$intValue)<=0){
            $srcValue+=$intValue;
        }
        return $srcValue;
    }
1127693
public DynamicByteBuffer addUnsignedInt( long value ) {

        if ( 4 + length < capacity ) {
            DynamicByteBufferHelper.unsignedIntTo( buffer, length, value );
        } else {
            buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 4 );
            capacity = buffer.length;

            DynamicByteBufferHelper.unsignedIntTo( buffer, length, value );
        }

        length += 4;
        return this;

    }
608846
public AverageBuilder addValue(final Number number) {
        final double total = _average * _numValues + number.doubleValue();
        _numValues++;
        _average = total / _numValues;
        return this;
    }
283582
public function numeric()
    {
        if (!is_int($this->value) && !is_float($this->value) && !is_string($this->value)) {
            throw new InvalidIntOrFloatOrStringException($this->name, $this->value);
        } elseif (!is_numeric($this->value)) {
            throw new InvalidNumericException($this->name, $this->value);
        }

        return $this;
    }
651961
public static int intVal(String val, int defaultValue) {
        try {
            return NumberUtils.createNumber(val).intValue();
        } catch (Exception e) {
            log.warn("intVal(String, int) throw {}, return defaultValue = {}", e, defaultValue);
            return defaultValue;
        }
    }
14312
protected void set(final int n, final Rational value) {
        final int nindx = n / 2;
        if (nindx < a.size()) {
            a.set(nindx, value);
        } else {
            while (a.size() < nindx) {
                a.add(Rational.ZERO);
            }
            a.add(value);
        }
    }
1118189
public T set(final T newValue) {
        if(continuous!=null)
         continuous.offer(newValue);

        setDiscreteIfDiff(newValue);
        return newValue;
    }
476855
public VarDefBuilder values( VarValueDef... values)
    {
    for( VarValueDef value : values)
      {
      varDef_.addValue( value);
      }
    return this;
    }
202987
private void setValue(Object newValue) {
        try {
            if (this.type == null)
                value = newValue;
            else if (this.type.equals("java.lang.String"))
                value = newValue;
            else if (this.type.equals("java.lang.Boolean"))
                value = Boolean.valueOf((String) newValue);
            else if (this.type.equals("java.lang.Integer"))
                value = new Integer(((String) newValue));
            else if (this.type.equals("java.lang.Double"))
                value = new Double(((String) newValue));
            else if (this.type.equals("java.lang.Byte"))
                value = new Byte(((String) newValue));
            else if (this.type.equals("java.lang.Short"))
                value = new Short(((String) newValue));
            else if (this.type.equals("java.lang.Long"))
                value = new Long(((String) newValue));
            else if (this.type.equals("java.lang.Float"))
                value = new Float(((String) newValue));
            else if (this.type.equals("java.lang.Character")) 
                value = Character.valueOf(((String) newValue).charAt(0)); 
            else
                value = newValue;

        } catch (NumberFormatException nfe) {
            Tr.warning(tc, "INCOMPATIBLE_PROPERTY_TYPE_J2CA0207", new Object[] { name, type, newValue });
        }

    }
1154323
@Override
    CssFormatter appendValue( double value, String unit ) {
        if( value == 0 ) {
            switch( unit ) {
                case "deg":
                case "s":
                    break;
                default:
                    super.append( '0' );
                    return this;
            }
        }
        return super.appendValue( value, unit );
    }
614308
public void addValue(int idx, double val) {
        int c = get1dConfigIdx(idx);
        values.set(c, s.plus(values.get(c), val)); 
    }
586712
public void add(T newValue) {
		if (this.isSet) {
			if (!this.isMultiple
					&& newValue != this.object && (newValue == null || !newValue.equals(this.object))) {
				this.isMultiple = true;
				this.object = null;
			}
		} else {
			this.object = newValue;
			this.isSet = true;
			this.isMultiple = false;
		}
	}
299161
public void addEmptyValue(int index){
         values[index].add(Double.NaN);
         corrupted[index] = true;
     }