title: Guava to Java 8 conversion
body: <p>I'm migrating my Guava Functions and Predicates to Java 8.  Unparameterized Predictates are easy, I just change from class to interface and put a "default" in front of the apply() method.  What I'm stuck on is parameterized Predicates.  How can I define a reusable parameterized predicate in Java 8.  Here's my current Guava code:</p>
  
  <pre><code>import com.google.common.base.Predicate
  
  public class InSectorPredicate implements Predicate&lt;Unit&gt; {
      private final SectorCoords coords;
  
      public InSectorPredicate(SectorCoords coords) {
          this.coords = coords;
      }
  
      @Override
      public boolean apply(Unit unit) {
          return unit.getCoords().equals(coords);
      }
  }
  </code></pre>