Skip to content

Tag Archives: Java-text package

The toPattern() method of java.text.MessageFormat class is used to get string representation of the current pattern of this message format object.Syntax:   public String toPattern() Parameter:… Read More
The formatToCharacterIterator() method of java.text.MessageFormat class is used to format an array of object and insert them into the pattern of message format object. Syntax:… Read More
The getFieldAttribute() method of java.text.FieldPosition class is used to get the field identifier in the form of Format.field. Syntax: public Format.Field getFieldAttribute() Parameter: This method… Read More
The getBeginIndex() method of java.text.FieldPosition class is used to get the index of the beginning character of the FieldPosition object. Syntax: public int getBeginIndex() Parameter:… Read More
The getField() method of java.text.FieldPosition class is used to retrieve the field identifier of this field position object. Syntax: public int getField() Parameter: This method… Read More
The getEndIndex() method of java.text.FieldPosition class is used to get the index of the character which is preceded by the last character in FieldPosition object.… Read More
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 setEndIndex() method of java.text.FieldPosition class is used to set the index of the character which is preceded by the last character in FieldPosition object.… Read More
The equals() method of java.text.FieldPosition class is used to check if both the FieldPosition objects are same or not.  Syntax:   public boolean equals(Object obj) Parameter:… Read More
The hashCode() method of java.text.FieldPosition class is used to get the hashcode of the FieldPosition object. Syntax: public int hashCode() Parameter: This method does not… Read More
The setBeginIndex() method of java.text.FieldPosition class is used to set the index of the beginning character of the FieldPosition object.Syntax:  public void setBeginIndex(int index) 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 not… 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(CharacterIterator source) Parameter:… 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: This… Read More