Tag Archives: Java-Collator

The getInstance(Locale) method of java.text.Collator class is used to get the new collator object having the desired locale. Syntax: public static Collator getInstance(Locale desiredLocale) Parameter:… Read More
The getInstance() method of java.text.Collator class is used to get the new collator object having the current default locale. Syntax: public static Collator getInstance() Parameter:… Read More
The hashCode() method of java.text.Collator class is used to get the hashCode for this Collator object. Syntax: public abstract int hashCode() Parameter: This method does… Read More
The equals() method of java.text.Collator class is used to check if both the Collator objects are same or not. Syntax: public boolean equals(Object that) Parameter:… Read More
The compare() method of java.text.Collator class is used to compare the strength of two objects and it will return 0, positive and negative value as… Read More
The getStrength() method of java.text.Collator class is used to get the strength property of Collator object which will help that object during comparison. Syntax: public… Read More
The getDecomposition() method of java.text.Collator class is used to get the decomposition mode of this collator . Syntax: public int getDecomposition() Parameter: This method does… Read More
The getCollationKey() method of java.text.Collator class is used to get the series of bit converted from string passed into it. Syntax: public abstract CollationKey getCollationKey(String… Read More
The getAvailableLocales() method of java.text.Collator class is used to get the all available locales which come under the passed Locales instance during the initializing of… Read More
The equals() method of java.text.Collator class is used to check if both the strings are identical or not. Syntax: public boolean equals(String source, String target)… Read More
The setStrength() method of java.text.Collator class is used to set the strength property of Collator object which will help that object during comparison of two… Read More
The compare() method of java.text.Collator class is used to compare the strength of two string and it will return 0, positive and negative value as… Read More
The setdecomposition() method of java.text.Collator class is used to set the decomposition mode of this collator. Syntax: public void setDecomposition(int decompositionMode) Parameter: This method takes… Read More