public void ifPresent(LongConsumer consumer){
  if (isPresent)   consumer.accept(value);
}

public void ifPresent ( LongConsumer consumer ) { if ( isPresent ) consumer . accept ( value ) ; }
have the specified consumer accept the value if a value is present , otherwise do nothing .
