Code example for ArrayList

Methods: contains, size

0
        } 
    } 
 
    @Override 
    public boolean apply(Task input) { 
        if (priorities.size() == 0) { 
            return true; 
        } 
 
        if (priorities.contains(input.getPriority())) { 
            return true; 
        } 
 
        return false; 
    } 
 
    /* FOR TESTING ONLY, DO NOT USE IN APPLICATION */ 
    ArrayList<Priority> getPriorities() { 
        return priorities; 
    } 
}