public class ToStringer extends Object
Constructor and Description |
---|
ToStringer(@NonNull Object object)
Creates a toString helper.
|
Modifier and Type | Method and Description |
---|---|
@NonNull ToStringer |
add(@NonNull String name,
boolean b)
Adds a boolean.
|
@NonNull ToStringer |
add(@NonNull String name,
byte b)
Adds a byte.
|
@NonNull ToStringer |
add(@NonNull String name,
char c)
Adds a char.
|
@NonNull ToStringer |
add(@NonNull String name,
double d)
Adds a double.
|
@NonNull ToStringer |
add(@NonNull String name,
float f)
Adds a float.
|
@NonNull ToStringer |
add(@NonNull String name,
int i)
Adds an int.
|
@NonNull ToStringer |
add(@NonNull String name,
long l)
Adds a long.
|
@NonNull ToStringer |
add(@NonNull String name,
@Nullable Object object)
Adds an object.
|
@NonNull ToStringer |
add(@NonNull String name,
short s)
Adds a short.
|
@NonNull String |
toString() |
public ToStringer(@NonNull Object object)
object
- object that is being toString'dpublic @NonNull ToStringer add(@NonNull String name, @Nullable Object object)
name
- name of the objectobject
- object to addpublic @NonNull ToStringer add(@NonNull String name, boolean b)
name
- name of the booleanb
- boolean to addpublic @NonNull ToStringer add(@NonNull String name, byte b)
name
- name of the byteb
- byte to addpublic @NonNull ToStringer add(@NonNull String name, char c)
name
- name of the charc
- char to addpublic @NonNull ToStringer add(@NonNull String name, double d)
name
- name of the doubled
- double to addpublic @NonNull ToStringer add(@NonNull String name, float f)
name
- name of the floatf
- float to addpublic @NonNull ToStringer add(@NonNull String name, int i)
name
- name of the inti
- int to addpublic @NonNull ToStringer add(@NonNull String name, long l)
name
- name of the longl
- long to addpublic @NonNull ToStringer add(@NonNull String name, short s)
name
- name of the shorts
- short to addCopyright © 2013–2021 Kitteh. All rights reserved.