/*
 * Decompiled with CFR 0.152.
 */
package com.hst.common.util;

import java.text.CollationKey;
import java.text.Collator;
import java.util.Comparator;

public class CollatorComparator<T>
implements Comparator<T> {
    Collator collator = Collator.getInstance();

    @Override
    public int compare(T element1, T element2) {
        CollationKey key1 = this.collator.getCollationKey(element1.toString());
        CollationKey key2 = this.collator.getCollationKey(element2.toString());
        return key1.compareTo(key2);
    }
}
