public void ifPresentOrElse(IntConsumer action,Runnable emptyAction){
  if (isPresent) {
    action.accept(value);
  }
 else {
    emptyAction.run();
  }
}

public void ifPresentOrElse ( IntConsumer action , Runnable emptyAction ) { if ( isPresent ) { action . accept ( value ) ; } else { emptyAction . run ( ) ; } }
if a value is present , performs the given action with the value , otherwise performs the given empty - based action .
