title: Check if attribute from object is not null with Option Java 8
body: <p>I have a object from the following class,</p>
  
  <pre><code>public class Customer { 
      private String email;
      private String name;
  }
  </code></pre>
  
  <p>How can I check whether every attribute is not null using Optional from java 8? Or there is another less verbose way?</p>