Skip to content

Tag Archives: Java-text package

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 setText() method of java.text.CollationElementIterator class is used to set the new source string for CollationElementIterator object to iterate. Syntax:  public void setText(String source) Parameter:… Read More
The primaryOrder() method of java.text.CollationElementIterator class is used to provide the primary component of every Collison element of CollationElementIterator object. Syntax: public static final int… Read More
The secondaryOrder() method of java.text.CollationElementIterator class is used to provide the secondary component of every Collison element of CollationElementIterator object. Syntax: public static final short… Read More
The previous() method of java.text.CollationElementIterator class is used to get previous Collator element. This method push the iterator to the previous element and returns its… Read More
The setOffset() method of java.text.CollationElementIterator class is used to set the cursor of the iterator to the particular index passed as parameter. Syntax:  public void… Read More
The getOffset() method of java.text.CollationElementIterator class is used to get the index of item present at collator currently pointed by CollationElementIterator. Syntax: public int getOffset()… Read More
The next() method of java.text.CollationElementIterator class is used to get next Collator element. This method push the iterator to the next element and returns its… 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 values as… Read More