public final enum


extends Enum<E extends Enum<E>>
implements Comparator<T>
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.jira.util.NaturalOrderStringComparator

Class Overview

Natural Order String Comparator compares Strings in a more "human friendly" way. For instance, in a natural order String comparator, "z9.txt" comes before "z10.txt". The whitespaces are also stripped so that "z9.txt" will come before "z 10.txt". The comparator is not locale-dependent.


Enum Values
NaturalOrderStringComparator  CASE_INSENSITIVE_ORDER   
NaturalOrderStringComparator  CASE_SENSITIVE_ORDER   
Public Methods
int compare(String str1, String str2)
static NaturalOrderStringComparator valueOf(String name)
final static NaturalOrderStringComparator[] values()
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable
From interface java.util.Comparator

Enum Values

public static final NaturalOrderStringComparator CASE_INSENSITIVE_ORDER

public static final NaturalOrderStringComparator CASE_SENSITIVE_ORDER

Public Methods

public int compare (String str1, String str2)

public static NaturalOrderStringComparator valueOf (String name)

public static final NaturalOrderStringComparator[] values ()