Skip to content

Tag Archives: Java-text package

The getRules() method of java.text.RuleBasedCollator class is used to get the rule which is used during the initialization of rule based collator object. Syntax:  public… Read More
The getCollationElementIterator() method of java.text.RuleBasedCollator class is used to get the object of collation element iterator for the given character iterator object. Syntax: public CollationElementIterator… Read More
The hashCode() method of java.text.RuleBasedCollator class is used to get the hashCode for this Collator object.Syntax:   public abstract int hashCode() Parameter: This method does not… Read More
The getCollationElementIterator() method of java.text.RuleBasedCollator class is used to get the object of collation element iterator for the given string. Syntax: public CollationElementIterator getCollationElementIterator(String source)… Read More
The getCollationKey() method of java.text.RuleBasedCollator class is used to get the series of bit converted from string passed into it. Syntax: public CollationKey getCollationKey(String source)… Read More
The equals() method of java.text.MessageFormat class is used to check if both the MessageFormat objects are same or not.  Syntax:   public boolean equals(Object obj) Parameter:… Read More
The getLocale() method of java.text.MessageFormat class is used to get the locale used in this message format object. Syntax: public Locale getLocale() Paramter: This method… Read More
The parse() method of java.text.MessageFormat class is used to parse the string object from the beginning of the index. Syntax: public Object[] parse(String source) throws… Read More
The format() method of java.text.MessageFormat class is used to get the formatted array of object according to the specified pattern of message format object. new… Read More
The applyPattern() method of java.text.MessageFormat class is used to set the new pattern text for current MessageFormat by overriding the current FormatElement, FormatType and FormatStyle.… Read More
The getFormats() method of java.text.MessageFormat class is used to get the format for every argument index chronologically which is present in the pattern of message… Read More
The format() method of java.text.MessageFormat class is used to get the formatted array of object appended into the string buffer object. formatted array will contain… Read More
The parseObject() method of java.text.MessageFormat class is used to parse the string object starting from the passed parse position in the parseObject() method. Syntax: public… Read More
The hashCode() method of java.text.MessageFormat class is used to get hashcode for this message format object.Syntax:   public int hashCode() Parameter: This method does not take… Read More
The getFormats() method of java.text.MessageFormat class is used to get the formats used for previously set pattern for the message format object. Syntax: public Format[]… Read More