Class StringComparator.LocaleRules

java.lang.Object
org.gvsig.gui.beans.comboboxconfigurablelookup.StringComparator.LocaleRules
Enclosing class:
StringComparator

public class StringComparator.LocaleRules extends Object
Represents the information needed by StringComparator for use or not locale-sensitive String comparison-rules in the compare method.
Author:
Pablo Piqueras Bartolomé
  • Constructor Details

    • LocaleRules

      public LocaleRules()
      Default constructor without parameters.
    • LocaleRules

      public LocaleRules(boolean b, Collator collator)
      Default constructor with two parameters.
      Parameters:
      b - Use locale rules
      collator - A reference to an object configurated for locale-sensitive String comparison
  • Method Details

    • getCollator

      public Collator getCollator()
      Gets the value of the inner attribute _collator.
      Returns:
      Returns A reference to an object configurated for locale-sensitive String comparison
    • setCollator

      public void setCollator(Collator collator)
      Sets a value to the inner attribute _collator.
      Parameters:
      collator - A reference to an object configurated for locale-sensitive String comparison
    • isUseLocaleRules

      public boolean isUseLocaleRules()
      Gets the value of the inner attribute useLocaleRules.
      Returns:
      Returns the useLocaleRules.
    • setUseLocaleRules

      public void setUseLocaleRules(boolean useLocaleRules)
      Sets a value to the inner attribute useLocaleRules.
      Parameters:
      useLocaleRules - The useLocaleRules to set.