package plp.util; public class FirstCharPredicate implements Predicate { private char c; public FirstCharPredicate(char c) { this.c = c; } public boolean predicate(Object o) { return o != null && o instanceof String && ((String) o).charAt(0) == c; } }