Package | Description |
---|---|
com.salesforce.omakase.util |
Utilities and helpers.
|
Modifier and Type | Method and Description |
---|---|
As |
As.add(String name,
Iterable<?> iterable)
Adds a member to this toString representation.
|
As |
As.add(String name,
Object value)
Adds a member to this toString representation.
|
As |
As.addIf(boolean condition,
String name,
Object value)
Same as
add(String, Object) , except it will only add the member if the given condition is true. |
As |
As.addUnlessEmpty(String name,
Iterable<?> iterable)
Same as
add(String, Iterable) , except it will only add the member if the iterable is not empty. |
As |
As.fields()
Specifies that all fields should be added.
|
As |
As.indent()
Specifies that this toString representation should indent and write each member on a separate line.
|
As |
As.named(String name)
Creates a new string representation helper described by the given name.
|
static As |
As.string(Object object)
Creates a new string representation helper for the given object.
|
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.