Back to project page UpcomingMoviesMVP.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project UpcomingMoviesMVP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jlmd.android.newfilmsmvp.di.module; //from w w w. j a va 2 s .co m import com.jlmd.android.newfilmsmvp.domain.comparator.MovieDateComparator; import com.jlmd.android.newfilmsmvp.domain.comparator.MovieTitleComparator; import com.jlmd.android.newfilmsmvp.domain.model.Movie; import java.util.Comparator; import javax.inject.Named; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * @author jlmd */ @Module( complete = false, library = true ) public class ComparatorModule { @Provides @Named("date") @Singleton Comparator<Movie> providesMovieDateComparator() { return new MovieDateComparator(); } @Provides @Named("title") @Singleton Comparator<Movie> providesMovieTitleComparator() { return new MovieTitleComparator(); } }