class WildcardMatcher {

    static char charAt(int i, CharSequence firstPart, CharSequence secondPart, int firstPartLength) {
        return i < firstPartLength ? firstPart.charAt(i) : secondPart.charAt(i - firstPartLength);
    }

}