Code example for Set

Methods: contains

0
    public boolean add(Key<?> key) {
        return backingSet.add(key.toString());
    } 
 
    public boolean contains(Object o) { 
        return o instanceof Key && backingSet.contains(o.toString());
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java