com.jclark.xsl.util

Class TextComparator

Implemented Interfaces:
Comparator

public class TextComparator
extends java.lang.Object
implements Comparator

Field Summary

static int
LOWER_FIRST
static int
UPPER_FIRST

Method Summary

int
compare(Object obj1, Object obj2)
static Comparator
create(Locale locale, int caseOrder)

Field Details

LOWER_FIRST

public static final int LOWER_FIRST
Field Value:
2

UPPER_FIRST

public static final int UPPER_FIRST
Field Value:
1

Method Details

compare

public int compare(Object obj1,
                   Object obj2)
Specified by:
compare in interface Comparator

create

public static Comparator create(Locale locale,
                                int caseOrder)