Class StringComparator

java.lang.Object
org.gvsig.utils.StringComparator
All Implemented Interfaces:
Comparator

public class StringComparator extends Object implements Comparator
Compares two chain of characters alphabetically
Author:
Fernando González Cortés, Pablo Piqueras Bartolomé
  • Field Details

  • Constructor Details

    • StringComparator

      public StringComparator()
  • Method Details

    • compare

      public int compare(Object o1, Object o2)
      Specified by:
      compare in interface Comparator
      See Also:
    • isCaseSensitive

      public boolean isCaseSensitive()
      Returns if the comparator is sensitive to small and big letters
      Returns:
    • setCaseSensitive

      public void setCaseSensitive(boolean b)
      Establece la sensibilidad del comparador a las mayusculas y minusculas
      Parameters:
      b -
    • getLocaleRules

      public StringComparator.LocaleRules getLocaleRules()
      Gets an object with the information for use the locale rules in comparation between strings.
      • A boolean value -> if want or not use the locale rules
      • A reference to the locale rules
      Returns:
      @see LocaleRules
    • setLocaleRules

      public void setLocaleRules(StringComparator.LocaleRules locRules)
      Sets an object with the information for use the locale rules in comparation between strings.
      • A boolean value -> if want or not use the locale rules
      • A reference to the locale rules