Skip to content

Tag Archives: Java-text package

The setFormatByArgumentIndex() method of java.text.MessageFormat class is used to set the new format element at the particular index in pattern of message format object by… Read More
The getIndex() method of java.text.ParsePosition class is used to retrieve the current parse position of this ParsePositon object . Syntax: public int getIndex() Parameter: This… Read More
The equals() method of java.text.ParsePosition class is used to check if both the ParsePosition objects are same or not. Syntax: public boolean equals(Object obj) Parameter:… Read More
The toString() method of java.text.ParsePosition class is used to retrieve the parse position object represented in the form of string.Syntax:   public String toString() Parameter: This… Read More
The setFormats() method of java.text.MessageFormat class is used to set the new format element at the particular index in the pattern of this message format… Read More
The setIndex() method of java.text.ParsePosition class is used to set the current parse position of this ParsePositon object . Syntax: public void setIndex(int index) Parameter:… Read More
The hashCode() method of java.text.ParsePosition class is used to retrieve the hash code for the current parse position object. Syntax: public int hashCode() Parameter: This… Read More
The setErrorIndex() method of java.text.ParsePosition class is used to set the index at which parse error may occurr. Syntax: public void setErrorIndex(int ei) Parameter: This… Read More
The getErrorIndex() method of java.text.ParsePosition class is used to retrieve the index at which parse error may occur. Syntax: public int getErrorIndex() Parameter: This method… Read More
The setFormats() method of java.text.MessageFormat class is used to set the array of new format element in the pattern of message format object by overriding… Read More
The clone() method of java.text.RuleBasedCollator class is used to get the copy of this Collator object. Syntax: public Object clone() Parameter: This method does not… Read More
The setFormatsByArgumentIndex method of java.text.MessageFormat class is used to set the array of new format element in the pattern of message format object by overriding… Read More
The setLocale() method of java.text.MessageFormat class is used to set the new locale in this message format object. Syntax: public void setLocale(Locale locale) Parameter: This… Read More
The compare() method of java.text.RuleBasedCollator class is used to compare the strength of two objects and it will return 0, positive and negative value as… Read More
The equals() method of java.text.Collator class is used to check if both the specifiedstrings are identical or not. Syntax: public boolean equals(String source, String target)… Read More