|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.util.FormattableFlags
public class FormattableFlags
將 FomattableFlags 傳遞給 Formattable.formatTo() 方法,並修改 Formattables 的輸出格式。Formattable 的實作負責解釋和驗證所有標誌。
| 欄位摘要 | |
|---|---|
static int |
ALTERNATE
要求輸出使用替換形式。 |
static int |
LEFT_JUSTIFY
將輸出左對齊。 |
static int |
UPPERCASE
根據創建 formatTo() 方法的 formatter 參數期間給出的 locale 規則,將輸出轉換為大寫形式。 |
| 方法摘要 |
|---|
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
public static final int LEFT_JUSTIFY
此標誌對應於格式說明符中的 '-' ('\u002d')。
public static final int UPPERCASE
formatTo() 方法的 formatter 參數期間給出的 locale 規則,將輸出轉換為大寫形式。輸出應該等同於 String.toUpperCase(java.util.Locale) 的以下調用
out.toUp2perCase()
此標誌對應於格式說明符中的 '^' ('\u005e')。
public static final int ALTERNATE
此標誌對應於格式說明符中的 '#' ('\u0023')。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。