src/main/java/seedu/address/logic/commands/ListCommand.java
/**
     * Returns a Predicate that checks if a studySpot contains the rating queried.
     * @param queryRating
     */
Returns a Predicate that checks if a studySpot contains the rating queried.
@param queryRating
Returns a Predicate that checks if a studySpot contains the rating queried . @param queryRating
public static Predicate<StudySpot> containsRating(Rating queryRating) {
        Predicate<StudySpot> studySpotContainRating = new Predicate<StudySpot>() {
            @Override
            public boolean test(StudySpot studySpot) {
                return studySpot.getRating().equals(queryRating);
            }
        };
        return studySpotContainRating;
    }
public static Predicate < StudySpot > containsRating ( Rating queryRating ) { Predicate < StudySpot > studySpotContainRating = new Predicate < StudySpot > ( ) { @ Override public boolean test ( StudySpot studySpot ) { return studySpot . getRating ( ) . equals ( queryRating ) ; } } ; return studySpotContainRating ; }
Returns a Predicate that checks if a studySpot contains the rating queried.
Returns a Predicate that checks if a studySpot contains the rating queried .