public Builder addConstraint(@JobConstraint int constraint){
  int[] newConstraints=new int[mConstraints == null ? 1 : mConstraints.length + 1];
  if (mConstraints != null && mConstraints.length != 0) {
    System.arraycopy(mConstraints,0,newConstraints,0,mConstraints.length);
  }
  newConstraints[newConstraints.length - 1]=constraint;
  mConstraints=newConstraints;
  return this;
}

public Builder addConstraint ( @ JobConstraint int constraint ) { int [ ] newConstraints = new int [ mConstraints == null ? 1 : mConstraints . length + 1 ] ; if ( mConstraints != null && mConstraints . length != 0 ) { System . arraycopy ( mConstraints , 0 , newConstraints , 0 , mConstraints . length ) ; } newConstraints [ newConstraints . length - 1 ] = constraint ; mConstraints = newConstraints ; return this ; }
adds the provided constraint to the current list of runtime constraints .
