java.text 包的共享 API
编辑java.text 包的共享 API
编辑请参阅 共享 API,了解所有包和类的概述。
Annotation
编辑- Annotation(Object)
- boolean equals(Object)
- def getValue()
- int hashCode()
- null toString()
AttributedCharacterIterator
编辑- def clone()
- char current()
- boolean equals(Object)
- char first()
- Set getAllAttributeKeys()
- def getAttribute(AttributedCharacterIterator.Attribute)
- Map getAttributes()
- int getBeginIndex()
- int getEndIndex()
- int getIndex()
- int getRunLimit()
- int getRunLimit(Set)
- int getRunStart()
- int getRunStart(Set)
- int hashCode()
- char last()
- char next()
- char previous()
- char setIndex(int)
- null toString()
AttributedCharacterIterator.Attribute
编辑AttributedString
编辑- AttributedString(null)
- AttributedString(null, Map)
- void addAttribute(AttributedCharacterIterator.Attribute, Object)
- void addAttribute(AttributedCharacterIterator.Attribute, Object, int, int)
- void addAttributes(Map, int, int)
- boolean equals(Object)
- AttributedCharacterIterator getIterator()
- AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute[])
- AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute[], int, int)
- int hashCode()
- null toString()
Bidi
编辑- static int DIRECTION_DEFAULT_LEFT_TO_RIGHT
- static int DIRECTION_DEFAULT_RIGHT_TO_LEFT
- static int DIRECTION_LEFT_TO_RIGHT
- static int DIRECTION_RIGHT_TO_LEFT
- static void reorderVisually(byte[], int, Object[], int, int)
- static boolean requiresBidi(char[], int, int)
- Bidi(AttributedCharacterIterator)
- Bidi(null, int)
- Bidi(char[], int, byte[], int, int, int)
- boolean baseIsLeftToRight()
- Bidi createLineBidi(int, int)
- boolean equals(Object)
- int getBaseLevel()
- int getLength()
- int getLevelAt(int)
- int getRunCount()
- int getRunLevel(int)
- int getRunLimit(int)
- int getRunStart(int)
- int hashCode()
- boolean isLeftToRight()
- boolean isMixed()
- boolean isRightToLeft()
- null toString()
BreakIterator
编辑- static int DONE
- static Locale[] getAvailableLocales()
- static BreakIterator getCharacterInstance()
- static BreakIterator getCharacterInstance(Locale)
- static BreakIterator getLineInstance()
- static BreakIterator getLineInstance(Locale)
- static BreakIterator getSentenceInstance()
- static BreakIterator getSentenceInstance(Locale)
- static BreakIterator getWordInstance()
- static BreakIterator getWordInstance(Locale)
- def clone()
- int current()
- boolean equals(Object)
- int first()
- int following(int)
- CharacterIterator getText()
- int hashCode()
- boolean isBoundary(int)
- int last()
- int next()
- int next(int)
- int preceding(int)
- int previous()
- void setText(null)
- null toString()
CharacterIterator
编辑ChoiceFormat
编辑- static double nextDouble(double)
- static double nextDouble(double, boolean)
- static double previousDouble(double)
- ChoiceFormat(null)
- ChoiceFormat(double[], null[])
- void applyPattern(null)
- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- Currency getCurrency()
- def[] getFormats()
- double[] getLimits()
- int getMaximumFractionDigits()
- int getMaximumIntegerDigits()
- int getMinimumFractionDigits()
- int getMinimumIntegerDigits()
- RoundingMode getRoundingMode()
- int hashCode()
- boolean isGroupingUsed()
- boolean isParseIntegerOnly()
- Number parse(null)
- Number parse(null, ParsePosition)
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- void setChoices(double[], null[])
- void setCurrency(Currency)
- void setGroupingUsed(boolean)
- void setMaximumFractionDigits(int)
- void setMaximumIntegerDigits(int)
- void setMinimumFractionDigits(int)
- void setMinimumIntegerDigits(int)
- void setParseIntegerOnly(boolean)
- void setRoundingMode(RoundingMode)
- null toPattern()
- null toString()
CollationElementIterator
编辑- static int NULLORDER
- static int primaryOrder(int)
- static short secondaryOrder(int)
- static short tertiaryOrder(int)
- boolean equals(Object)
- int getMaxExpansion(int)
- int getOffset()
- int hashCode()
- int next()
- int previous()
- void reset()
- void setOffset(int)
- void setText(null)
- null toString()
CollationKey
编辑- int compareTo(CollationKey)
- boolean equals(Object)
- null getSourceString()
- int hashCode()
- byte[] toByteArray()
- null toString()
Collator
编辑- static int CANONICAL_DECOMPOSITION
- static int FULL_DECOMPOSITION
- static int IDENTICAL
- static int NO_DECOMPOSITION
- static int PRIMARY
- static int SECONDARY
- static int TERTIARY
- static Locale[] getAvailableLocales()
- static Collator getInstance()
- static Collator getInstance(Locale)
- def clone()
- int compare(def, def)
- boolean equals(Object)
- boolean equals(null, null)
- CollationKey getCollationKey(null)
- int getDecomposition()
- int getStrength()
- int hashCode()
- Comparator reversed()
- void setDecomposition(int)
- void setStrength(int)
- Comparator thenComparing(Comparator)
- Comparator thenComparing(Function, Comparator)
- Comparator thenComparingDouble(ToDoubleFunction)
- Comparator thenComparingInt(ToIntFunction)
- Comparator thenComparingLong(ToLongFunction)
- null toString()
DateFormat
编辑- static int AM_PM_FIELD
- static int DATE_FIELD
- static int DAY_OF_WEEK_FIELD
- static int DAY_OF_WEEK_IN_MONTH_FIELD
- static int DAY_OF_YEAR_FIELD
- static int DEFAULT
- static int ERA_FIELD
- static int FULL
- static int HOUR0_FIELD
- static int HOUR1_FIELD
- static int HOUR_OF_DAY0_FIELD
- static int HOUR_OF_DAY1_FIELD
- static int LONG
- static int MEDIUM
- static int MILLISECOND_FIELD
- static int MINUTE_FIELD
- static int MONTH_FIELD
- static int SECOND_FIELD
- static int SHORT
- static int TIMEZONE_FIELD
- static int WEEK_OF_MONTH_FIELD
- static int WEEK_OF_YEAR_FIELD
- static int YEAR_FIELD
- static Locale[] getAvailableLocales()
- static DateFormat getDateInstance()
- static DateFormat getDateInstance(int)
- static DateFormat getDateInstance(int, Locale)
- static DateFormat getDateTimeInstance()
- static DateFormat getDateTimeInstance(int, int)
- static DateFormat getDateTimeInstance(int, int, Locale)
- static DateFormat getInstance()
- static DateFormat getTimeInstance()
- static DateFormat getTimeInstance(int)
- static DateFormat getTimeInstance(int, Locale)
- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- Calendar getCalendar()
- NumberFormat getNumberFormat()
- TimeZone getTimeZone()
- int hashCode()
- boolean isLenient()
- Date parse(null)
- Date parse(null, ParsePosition)
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- void setCalendar(Calendar)
- void setLenient(boolean)
- void setNumberFormat(NumberFormat)
- void setTimeZone(TimeZone)
- null toString()
DateFormat.Field
编辑- static DateFormat.Field AM_PM
- static DateFormat.Field DAY_OF_MONTH
- static DateFormat.Field DAY_OF_WEEK
- static DateFormat.Field DAY_OF_WEEK_IN_MONTH
- static DateFormat.Field DAY_OF_YEAR
- static DateFormat.Field ERA
- static DateFormat.Field HOUR0
- static DateFormat.Field HOUR1
- static DateFormat.Field HOUR_OF_DAY0
- static DateFormat.Field HOUR_OF_DAY1
- static DateFormat.Field MILLISECOND
- static DateFormat.Field MINUTE
- static DateFormat.Field MONTH
- static DateFormat.Field SECOND
- static DateFormat.Field TIME_ZONE
- static DateFormat.Field WEEK_OF_MONTH
- static DateFormat.Field WEEK_OF_YEAR
- static DateFormat.Field YEAR
- static DateFormat.Field ofCalendarField(int)
- boolean equals(Object)
- int getCalendarField()
- int hashCode()
- null toString()
DateFormatSymbols
编辑- static Locale[] getAvailableLocales()
- static DateFormatSymbols getInstance()
- static DateFormatSymbols getInstance(Locale)
- DateFormatSymbols()
- DateFormatSymbols(Locale)
- def clone()
- boolean equals(Object)
- null[] getAmPmStrings()
- null[] getEras()
- null getLocalPatternChars()
- null[] getMonths()
- null[] getShortMonths()
- null[] getShortWeekdays()
- null[] getWeekdays()
- null[][] getZoneStrings()
- int hashCode()
- void setAmPmStrings(null[])
- void setEras(null[])
- void setLocalPatternChars(null)
- void setMonths(null[])
- void setShortMonths(null[])
- void setShortWeekdays(null[])
- void setWeekdays(null[])
- void setZoneStrings(null[][])
- null toString()
DecimalFormat
编辑- DecimalFormat()
- DecimalFormat(null)
- DecimalFormat(null, DecimalFormatSymbols)
- void applyLocalizedPattern(null)
- void applyPattern(null)
- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- Currency getCurrency()
- DecimalFormatSymbols getDecimalFormatSymbols()
- int getGroupingSize()
- int getMaximumFractionDigits()
- int getMaximumIntegerDigits()
- int getMinimumFractionDigits()
- int getMinimumIntegerDigits()
- int getMultiplier()
- null getNegativePrefix()
- null getNegativeSuffix()
- null getPositivePrefix()
- null getPositiveSuffix()
- RoundingMode getRoundingMode()
- int hashCode()
- boolean isDecimalSeparatorAlwaysShown()
- boolean isGroupingUsed()
- boolean isParseBigDecimal()
- boolean isParseIntegerOnly()
- Number parse(null)
- Number parse(null, ParsePosition)
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- void setCurrency(Currency)
- void setDecimalFormatSymbols(DecimalFormatSymbols)
- void setDecimalSeparatorAlwaysShown(boolean)
- void setGroupingSize(int)
- void setGroupingUsed(boolean)
- void setMaximumFractionDigits(int)
- void setMaximumIntegerDigits(int)
- void setMinimumFractionDigits(int)
- void setMinimumIntegerDigits(int)
- void setMultiplier(int)
- void setNegativePrefix(null)
- void setNegativeSuffix(null)
- void setParseBigDecimal(boolean)
- void setParseIntegerOnly(boolean)
- void setPositivePrefix(null)
- void setPositiveSuffix(null)
- void setRoundingMode(RoundingMode)
- null toLocalizedPattern()
- null toPattern()
- null toString()
DecimalFormatSymbols
编辑- static Locale[] getAvailableLocales()
- static DecimalFormatSymbols getInstance()
- static DecimalFormatSymbols getInstance(Locale)
- DecimalFormatSymbols()
- DecimalFormatSymbols(Locale)
- def clone()
- boolean equals(Object)
- Currency getCurrency()
- null getCurrencySymbol()
- char getDecimalSeparator()
- char getDigit()
- null getExponentSeparator()
- char getGroupingSeparator()
- null getInfinity()
- null getInternationalCurrencySymbol()
- char getMinusSign()
- char getMonetaryDecimalSeparator()
- null getNaN()
- char getPatternSeparator()
- char getPerMill() 获取千分号字符
- char getPercent() 获取百分号字符
- char getZeroDigit() 获取零字符
- int hashCode()
- void setCurrency(Currency) 设置货币
- void setCurrencySymbol(null) 设置货币符号
- void setDecimalSeparator(char) 设置小数点分隔符
- void setDigit(char) 设置数字字符
- void setExponentSeparator(null) 设置指数分隔符
- void setGroupingSeparator(char) 设置分组分隔符
- void setInfinity(null) 设置无限大表示
- void setInternationalCurrencySymbol(null) 设置国际货币符号
- void setMinusSign(char) 设置负号字符
- void setMonetaryDecimalSeparator(char) 设置货币小数点分隔符
- void setNaN(null) 设置非数字表示
- void setPatternSeparator(char) 设置模式分隔符
- void setPerMill(char) 设置千分号字符
- void setPercent(char) 设置百分号字符
- void setZeroDigit(char) 设置零字符
- null toString()
FieldPosition
编辑- FieldPosition(int) FieldPosition 构造函数
- FieldPosition(Format.Field, int) FieldPosition 构造函数
- boolean equals(Object)
- int getBeginIndex() 获取起始索引
- int getEndIndex() 获取结束索引
- int getField() 获取字段
- Format.Field getFieldAttribute() 获取字段属性
- int hashCode()
- void setBeginIndex(int) 设置起始索引
- void setEndIndex(int) 设置结束索引
- null toString()
Format
编辑- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- int hashCode()
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- null toString()
MessageFormat
编辑- static null format(null, Object[]) 格式化消息
- void applyPattern(null) 应用模式
- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- Format[] getFormats() 获取格式
- Format[] getFormatsByArgumentIndex() 按参数索引获取格式
- Locale getLocale() 获取区域设置
- int hashCode()
- Object[] parse(null) 解析消息
- Object[] parse(null, ParsePosition) 解析消息
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- void setFormat(int, Format) 设置格式
- void setFormatByArgumentIndex(int, Format) 按参数索引设置格式
- void setFormats(Format[]) 设置格式
- void setFormatsByArgumentIndex(Format[]) 按参数索引设置格式
- void setLocale(Locale) 设置区域设置
- null toPattern() 获取模式
- null toString()
MessageFormat.Field
编辑Normalizer
编辑- static boolean isNormalized(CharSequence, Normalizer.Form) 判断是否已规范化
- static null normalize(CharSequence, Normalizer.Form) 规范化字符序列
- boolean equals(Object)
- int hashCode()
- null toString()
Normalizer.Form
编辑- static Normalizer.Form NFC NFC 规范化形式
- static Normalizer.Form NFD NFD 规范化形式
- static Normalizer.Form NFKC NFKC 规范化形式
- static Normalizer.Form NFKD NFKD 规范化形式
- static Normalizer.Form valueOf(null) 根据字符串获取 Normalizer.Form
- static Normalizer.Form[] values() 获取所有 Normalizer.Form 值
- int compareTo(Enum) 比较枚举值
- boolean equals(Object)
- int hashCode()
- null name() 获取枚举名称
- int ordinal() 获取枚举序数
- null toString()
NumberFormat
编辑- static int FRACTION_FIELD 小数部分字段
- static int INTEGER_FIELD 整数部分字段
- static Locale[] getAvailableLocales() 获取可用的区域设置
- static NumberFormat getCurrencyInstance() 获取货币格式化器
- static NumberFormat getCurrencyInstance(Locale) 获取货币格式化器
- static NumberFormat getInstance() 获取数字格式化器
- static NumberFormat getInstance(Locale) 获取数字格式化器
- static NumberFormat getIntegerInstance() 获取整数格式化器
- static NumberFormat getIntegerInstance(Locale) 获取整数格式化器
- static NumberFormat getNumberInstance() 获取数字格式化器
- static NumberFormat getNumberInstance(Locale) 获取数字格式化器
- static NumberFormat getPercentInstance() 获取百分比格式化器
- static NumberFormat getPercentInstance(Locale) 获取百分比格式化器
- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- Currency getCurrency()
- int getMaximumFractionDigits()
- int getMaximumIntegerDigits()
- int getMinimumFractionDigits()
- int getMinimumIntegerDigits()
- RoundingMode getRoundingMode()
- int hashCode()
- boolean isGroupingUsed()
- boolean isParseIntegerOnly()
- Number parse(null)
- Number parse(null, ParsePosition)
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- void setCurrency(Currency)
- void setGroupingUsed(boolean)
- void setMaximumFractionDigits(int)
- void setMaximumIntegerDigits(int)
- void setMinimumFractionDigits(int)
- void setMinimumIntegerDigits(int)
- void setParseIntegerOnly(boolean)
- void setRoundingMode(RoundingMode)
- null toString()
NumberFormat.Field
编辑- static NumberFormat.Field CURRENCY 货币字段
- static NumberFormat.Field DECIMAL_SEPARATOR 小数点分隔符字段
- static NumberFormat.Field EXPONENT 指数字段
- static NumberFormat.Field EXPONENT_SIGN 指数符号字段
- static NumberFormat.Field EXPONENT_SYMBOL 指数符号字段
- static NumberFormat.Field FRACTION 小数部分字段
- static NumberFormat.Field GROUPING_SEPARATOR 分组分隔符字段
- static NumberFormat.Field INTEGER 整数部分字段
- static NumberFormat.Field PERCENT 百分比字段
- static NumberFormat.Field PERMILLE 千分比字段
- static NumberFormat.Field SIGN 符号字段
- boolean equals(Object)
- int hashCode()
- null toString()
ParseException
编辑- ParseException(null, int) ParseException 构造函数
- boolean equals(Object)
- int getErrorOffset() 获取错误偏移量
- null getLocalizedMessage() 获取本地化错误信息
- null getMessage() 获取错误信息
- StackTraceElement[] getStackTrace() 获取堆栈跟踪
- int hashCode()
- null toString()
ParsePosition
编辑- ParsePosition(int) ParsePosition 构造函数
- boolean equals(Object)
- int getErrorIndex() 获取错误索引
- int getIndex() 获取索引
- int hashCode()
- void setErrorIndex(int) 设置错误索引
- void setIndex(int) 设置索引
- null toString()
RuleBasedCollator
编辑- RuleBasedCollator(null) RuleBasedCollator 构造函数
- def clone()
- int compare(def, def)
- boolean equals(Object)
- boolean equals(null, null)
- CollationElementIterator getCollationElementIterator(null) 获取校对元素迭代器
- CollationKey getCollationKey(null)
- int getDecomposition()
- null getRules() 获取规则
- int getStrength()
- int hashCode()
- Comparator reversed()
- void setDecomposition(int)
- void setStrength(int)
- Comparator thenComparing(Comparator)
- Comparator thenComparing(Function, Comparator)
- Comparator thenComparingDouble(ToDoubleFunction)
- Comparator thenComparingInt(ToIntFunction)
- Comparator thenComparingLong(ToLongFunction)
- null toString()
SimpleDateFormat
编辑- SimpleDateFormat()
- SimpleDateFormat(null) SimpleDateFormat 构造函数
- SimpleDateFormat(null, Locale)
- void applyLocalizedPattern(null)
- void applyPattern(null)
- def clone()
- boolean equals(Object)
- null format(Object)
- StringBuffer format(Object, StringBuffer, FieldPosition)
- AttributedCharacterIterator formatToCharacterIterator(Object)
- Date get2DigitYearStart()
- Calendar getCalendar()
- DateFormatSymbols getDateFormatSymbols()
- NumberFormat getNumberFormat()
- TimeZone getTimeZone()
- int hashCode()
- boolean isLenient()
- Date parse(null)
- Date parse(null, ParsePosition)
- Object parseObject(null)
- Object parseObject(null, ParsePosition)
- void set2DigitYearStart(Date)
- void setCalendar(Calendar)
- void setDateFormatSymbols(DateFormatSymbols)
- void setLenient(boolean)
- void setNumberFormat(NumberFormat)
- void setTimeZone(TimeZone)
- null toLocalizedPattern()
- null toPattern()
- null toString()
StringCharacterIterator
编辑- StringCharacterIterator(null)
- StringCharacterIterator(null, int)
- StringCharacterIterator(null, int, int, int)
- def clone()
- char current()
- boolean equals(Object)
- char first()
- int getBeginIndex()
- int getEndIndex()
- int getIndex()
- int hashCode()
- char last()
- char next()
- char previous()
- char setIndex(int)
- void setText(null)
- null toString()