mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-27 19:20:42 -06:00
minor formatting fixes
This commit is contained in:
parent
cce97d1c89
commit
355d2fb19f
@ -21,7 +21,7 @@ package io.nosqlbench.engine.api.templating;
|
||||
* types which could be configured. This method provides an efficient method for refining a template or builder object
|
||||
* with O(1) field lookup.
|
||||
* <p>
|
||||
* The field enum doesn't limit how a field may be modified. In some cases, a single field may be iterativel built-up,
|
||||
* The field enum doesn't limit how a field may be modified. In some cases, a single field may be iteratively built-up,
|
||||
* such as headers for a request object. (Multiple headers can be added, and they are all a header type, just with
|
||||
* different values.) In other cases, there may be a single-valued property that is replaced entirely each time it is
|
||||
* set.
|
||||
|
@ -123,12 +123,17 @@ import java.util.stream.Collectors;
|
||||
public class NBParams {
|
||||
|
||||
public static List<Element> some(Object source) {
|
||||
return DataSources.elements(source).stream().map(ElementImpl::new).collect(Collectors.toList());
|
||||
return DataSources
|
||||
.elements(source)
|
||||
.stream()
|
||||
.map(ElementImpl::new)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static Element one(Object source) {
|
||||
return one(null, source);
|
||||
}
|
||||
|
||||
public static Element one(String givenName, Object source) {
|
||||
List<ElementData> some = DataSources.elements(givenName,source);
|
||||
if (some.size() == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user