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());
    } 
}