title: Java 8: How get a property from an object in a list where the other property of object must match with input
body: <pre><code>class Person{
       String Name;
       String Id;
      }
  </code></pre>
  <p>I have a list of person. I want to get the id of a person where the Name matches with input, I know it can be done by using filter but in my case, name is always unique so I get only one ID back. Please let me know if there is any other efficient ways to do this.</p>