Example usage for java.text CollationKey compareTo

List of usage examples for java.text CollationKey compareTo

Introduction

In this page you can find the example usage for java.text CollationKey compareTo.

Prototype

public abstract int compareTo(CollationKey target);

Source Link

Document

Compare this CollationKey to the target CollationKey.

Usage

From source file:net.erdfelt.android.sdkfido.util.CompareUtil.java

public static int compare(String str1, String str2) {
    CollationKey key1 = asKey(str1);
    CollationKey key2 = asKey(str2);
    return key1.compareTo(key2);
}

From source file:net.erdfelt.android.sdkfido.configer.ConfigurableComparator.java

public int compare(Configurable c1, Configurable c2) {
    CollationKey key1 = asKey(c1);
    CollationKey key2 = asKey(c2);
    return key1.compareTo(key2);
}