public ActionsList<T> add(Func2 func2,T element){
  return addAll(func2,Arrays.asList(element));
}

public ActionsList < T > add ( Func2 func2 , T element ) { return addAll ( func2 , Arrays . asList ( element ) ) ; }
func2 will be called for every iteration until its condition returns true . when true , the element is added to the cache at the position of the current iteration .
