Package edu.pdx.cs410J.rmi
Class MovieDatabaseImpl.SortMoviesByReleaseDate
java.lang.Object
edu.pdx.cs410J.rmi.MovieDatabaseImpl.SortMoviesByReleaseDate
- All Implemented Interfaces:
Serializable
,Comparator<Movie>
- Enclosing class:
- MovieDatabaseImpl
static class MovieDatabaseImpl.SortMoviesByReleaseDate
extends Object
implements Comparator<Movie>, Serializable
A comparator that sorts movies based on the year in which they
were released. It must be serializable so that it may be sent to
the client. It must be static so that it doesn't have a
reference to its outer class.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SortMoviesByReleaseDate
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Movie>
-