src/main/java/seedu/address/logic/commands/ListCommand.java
/**
     * Returns a Predicate that checks if a studySpot contains the tag queried.
     * @param queryTag
     */
Returns a Predicate that checks if a studySpot contains the tag queried.
@param queryTag
Returns a Predicate that checks if a studySpot contains the tag queried . @param queryTag
public static Predicate<StudySpot> containsTag(Tag queryTag) {
        Predicate<StudySpot> studySpotContainTag = new Predicate<StudySpot>() {
            @Override
            public boolean test(StudySpot studySpot) {
                return studySpot.getTags().contains(queryTag);
            }
        };
        return studySpotContainTag;
    }
public static Predicate < StudySpot > containsTag ( Tag queryTag ) { Predicate < StudySpot > studySpotContainTag = new Predicate < StudySpot > ( ) { @ Override public boolean test ( StudySpot studySpot ) { return studySpot . getTags ( ) . contains ( queryTag ) ; } } ; return studySpotContainTag ; }
Returns a Predicate that checks if a studySpot contains the tag queried.
Returns a Predicate that checks if a studySpot contains the tag queried .