Interface Query

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Query extends Serializable
This interface represents a query that can be performed on movies in a movie database. It is serializable so that it Query objects can be sent between the client and the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the given Movie satifies this Query.
  • Method Details

    • satisfies

      boolean satisfies(Movie movie)
      Returns true if the given Movie satifies this Query.