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

package ch.randelshofer.fastdoubleparser.chr;

import java.util.Collection;
import java.util.List;

public interface CharDigitSet
{
    int toDigit(final char p0);
    
    default CharDigitSet copyOf(final List<Character> digits) {
        boolean consecutive = true;
        final char zeroDigit = digits.get(0);
        for (int i = 1; i < 10; ++i) {
            final char current = digits.get(i);
            consecutive &= (current == zeroDigit + i);
        }
        return consecutive ? new ConsecutiveCharDigitSet(digits.get(0)) : new CharToIntMap(digits);
    }
}
