public static final class EdStoreResult.Builder<T> extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ch.ralscha.extdirectspring.bean.ImmutableEdStoreResult<T> |
build()
Builds a new
ImmutableEdStoreResult. |
EdStoreResult.Builder<T> |
from(EdStoreResult<T> instance)
Fill a builder with attribute values from the provided
EdStoreResult instance. |
EdStoreResult.Builder<T> |
message(String message)
Initializes the value for the
message attribute. |
EdStoreResult.Builder<T> |
metaData(Map<String,? extends Object> metaData)
Sets or replaces all mappings from the specified map as entries for the
metaData map. |
EdStoreResult.Builder<T> |
putAllMetaData(Map<String,? extends Object> metaData)
Put all mappings from the specified map as entries to
metaData map. |
EdStoreResult.Builder<T> |
putMetaData(Map.Entry<String,? extends Object> entry)
Put one entry to the
metaData map. |
EdStoreResult.Builder<T> |
putMetaData(String key,
Object value)
Put one entry to the
metaData map. |
EdStoreResult.Builder<T> |
records(Collection<T> records)
Initializes the value for the
records attribute. |
EdStoreResult.Builder<T> |
success(Boolean success)
Initializes the value for the
success attribute. |
EdStoreResult.Builder<T> |
total(Long total)
Initializes the value for the
total attribute. |
public final EdStoreResult.Builder<T> from(EdStoreResult<T> instance)
EdStoreResult instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final EdStoreResult.Builder<T> records(Collection<T> records)
records attribute.records - The value for recordsthis builder for use in a chained invocationpublic final EdStoreResult.Builder<T> total(Long total)
total attribute.total - The value for total (can be null)this builder for use in a chained invocationpublic final EdStoreResult.Builder<T> success(Boolean success)
success attribute.success - The value for success (can be null)this builder for use in a chained invocationpublic final EdStoreResult.Builder<T> putMetaData(String key, Object value)
metaData map.key - The key in the metaData mapvalue - The associated value in the metaData mapthis builder for use in a chained invocationpublic final EdStoreResult.Builder<T> putMetaData(Map.Entry<String,? extends Object> entry)
metaData map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final EdStoreResult.Builder<T> metaData(Map<String,? extends Object> metaData)
metaData map. Nulls are not permitted as keys or values, but parameter itself can be nullmetaData - The entries that will be added to the metaData mapthis builder for use in a chained invocationpublic final EdStoreResult.Builder<T> putAllMetaData(Map<String,? extends Object> metaData)
metaData map. Nulls are not permittedmetaData - The entries that will be added to the metaData mapthis builder for use in a chained invocationpublic final EdStoreResult.Builder<T> message(String message)
message attribute.message - The value for message (can be null)this builder for use in a chained invocationpublic ch.ralscha.extdirectspring.bean.ImmutableEdStoreResult<T> build()
ImmutableEdStoreResult.IllegalStateException - if any required attributes are missingCopyright © 2010–2016. All rights reserved.