public class ToStringCreator extends ObjectSE
toString()
メソッドを構築するユーティリティクラス。デフォルトでは、ToStringCreator は Spring の toString()
スタイリング規則に準拠しています。コンストラクターと説明 |
---|
ToStringCreator(ObjectSE obj) 指定されたオブジェクトの ToStringCreator を作成します。 |
ToStringCreator(ObjectSE obj, ToStringStyler styler) 指定されたスタイルを使用して、指定されたオブジェクトの ToStringCreator を作成します。 |
ToStringCreator(ObjectSE obj, ValueStyler styler) 指定されたスタイルを使用して、指定されたオブジェクトの ToStringCreator を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ToStringCreator | append(ObjectSE value) 指定された値を追加します。 |
ToStringCreator | append(StringSE fieldName, boolean value) ブール値を追加します。 |
ToStringCreator | append(StringSE fieldName, byte value) バイトフィールド値を追加します。 |
ToStringCreator | append(StringSE fieldName, double value) double フィールド値を追加します。 |
ToStringCreator | append(StringSE fieldName, float value) float フィールド値を追加します。 |
ToStringCreator | append(StringSE fieldName, int value) 整数フィールド値を追加します。 |
ToStringCreator | append(StringSE fieldName, long value) 長いフィールド値を追加します。 |
ToStringCreator | append(StringSE fieldName, ObjectSE value) フィールド値を追加します。 |
ToStringCreator | append(StringSE fieldName, short value) 短いフィールド値を追加します。 |
StringSE | toString() この ToStringCreator が構築した文字列表現を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public ToStringCreator(ObjectSE obj)
obj
- 文字列化されるオブジェクト public ToStringCreator(ObjectSE obj, @Nullable ValueStyler styler)
obj
- 文字列化されるオブジェクト styler
- ValueStyler カプセル化 pretty-print 命令 public ToStringCreator(ObjectSE obj, @Nullable ToStringStyler styler)
obj
- 文字列化されるオブジェクト styler
- ToStringStyler カプセル化 pretty-print 命令 public ToStringCreator append(StringSE fieldName, byte value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, short value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, int value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, long value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, float value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, double value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, boolean value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(StringSE fieldName, @Nullable ObjectSE value)
fieldName
- フィールドの名前、通常はメンバー変数名 value
- フィールド値 public ToStringCreator append(ObjectSE value)
value
- 追加する値 public StringSE toString()
ObjectSE
の toStringSE