title: Is there a class like Optional but for non-optionals?
body: <p>It is handy to declare Functions to map values and consume them if they are present. </p>
  
  <p>In the situation that you have several mandatory objects, and several Optionals, I find myself wrapping the others in Optional.of(mandatoryObject) as well so I can use the same expressions on them without writing it all backwards.</p>
  
  <pre><code>Food vegetables = Food.someVegetables();
  Optional&lt;Food&gt; condiment = Food.someCondiment();
  Optional&lt;Food&gt; spices = Food.someSpices();
  
  condiment.map(prepare).ifPresent(putOnPlate);
  spices.map(prepare).ifPresent(putOnPlate);
  </code></pre>
  
  <p>But then I don't like this code:</p>
  
  <pre><code>putOnPlate.accept(prepare.apply(vegetables));
  </code></pre>
  
  <p>so I wrap it:</p>
  
  <pre><code>Optional.of(vegetables).map(prepare).ifPresent(putOnPlate);
  </code></pre>
  
  <p>But that is just wrong, because the vegetables (in this example) are not in fact optional. They are very important and I just gave everyone the impression that they are optional.</p>
  
  <p>So my question is : Is there some class in java like java.util.Mandatory so I can write:</p>
  
  <pre><code>Mandatory.of(vegetables).map(prepare).definitelyPresentSo(putOnPlate);
  </code></pre>