001package edu.pdx.cs410J.rmi;
002
003import java.io.Serializable;
004
005/**
006 * This interface represents a query that can be performed on movies
007 * in a movie database.  It is serializable so that it
008 * <code>Query</code> objects can be sent between the client and the
009 * server. 
010 */
011@FunctionalInterface
012public interface Query extends Serializable {
013
014  /**
015   * Returns true if the given <code>Movie</code> satifies this
016   * <code>Query</code>. 
017   */
018  public boolean satisfies(Movie movie);
019
020}