// 
// Decompiled by Procyon v0.6.0
// 

package ch.randelshofer.fastdoubleparser.chr;

import java.util.Set;

final class CharSetOfOne implements CharSet
{
    private final char ch;
    
    CharSetOfOne(final Set<Character> set) {
        if (set.size() != 1) {
            throw new IllegalArgumentException("set size must be 1, size=" + set.size());
        }
        this.ch = set.iterator().next();
    }
    
    @Override
    public boolean containsKey(final char ch) {
        return this.ch == ch;
    }
}
