public interface PaddingProcessor
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
count(int codePoint)
引数で指定した1文字分のコードポイントの文字数をカウントします。
|
int |
count(String text)
文字列の文字数をカウントする。
|
String |
pad(String text,
int size,
char padChar,
boolean rightAlign,
boolean chopped)
テキストをパディングする
|
String pad(String text, int size, char padChar, boolean rightAlign, boolean chopped)
text - パディング対象の文字size - サイズpadChar - パディングする文字。rightAlign - 右詰めするかどうか。chopped - 処理対象の文字が固定長を超えている場合に、切り出すかどうか。int count(int codePoint)
codePoint - コードポイント。int count(String text)
text - カウント対象の文字列NullPointerException - text is null.Copyright © 2025 mygreen. All rights reserved.