@SuppressWarnings("unchecked") public void addValue(Object v,float b){
  if (value == null) {
    if (v instanceof Collection) {
      Collection<Object> c=new ArrayList<>(3);
      for (      Object o : (Collection<Object>)v) {
        c.add(o);
      }
      setValue(c,b);
    }
 else {
      setValue(v,b);
    }
    return;
  }
  boost*=b;
  Collection<Object> vals=null;
  if (value instanceof Collection) {
    vals=(Collection<Object>)value;
  }
 else {
    vals=new ArrayList<>(3);
    vals.add(value);
    value=vals;
  }
  if (v instanceof Iterable) {
    for (    Object o : (Iterable<Object>)v) {
      vals.add(o);
    }
  }
 else   if (v instanceof Object[]) {
    for (    Object o : (Object[])v) {
      vals.add(o);
    }
  }
 else {
    vals.add(v);
  }
}

@ SuppressWarnings ( "unchecked" ) public void addValue ( Object v , float b ) { if ( value == null ) { if ( v instanceof Collection ) { Collection < Object > c = new ArrayList < > ( 3 ) ; for ( Object o : ( Collection < Object > ) v ) { c . add ( o ) ; } setValue ( c , b ) ; } else { setValue ( v , b ) ; } return ; } boost *= b ; Collection < Object > vals = null ; if ( value instanceof Collection ) { vals = ( Collection < Object > ) value ; } else { vals = new ArrayList < > ( 3 ) ; vals . add ( value ) ; value = vals ; } if ( v instanceof Iterable ) { for ( Object o : ( Iterable < Object > ) v ) { vals . add ( o ) ; } } else if ( v instanceof Object [ ] ) { for ( Object o : ( Object [ ] ) v ) { vals . add ( o ) ; } } else { vals . add ( v ) ; } }
add values to a field . if the added value is a collection , each value will be added individually .
