class PatternHolder {

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof PatternHolder) {
            return pattern.toString().equals(obj.toString());
        } else {
            return false;
        }
    }

    public  PatternHolder(Pattern pattern);

}