public class CollectionSetBuilder extends Object
CollectionSet
.
Many of the existing collectors end up implementing their collections,
attributes and resource types. This class is intended to replace those
and provide a common means for building the collection sets.Constructor and Description |
---|
CollectionSetBuilder(CollectionAgent agent) |
Modifier and Type | Method and Description |
---|---|
CollectionSet |
build() |
CollectionSetBuilder |
withNumericAttribute(Resource resource,
String group,
String name,
Number value,
AttributeType type) |
CollectionSetBuilder |
withStatus(CollectionStatus status) |
CollectionSetBuilder |
withStringAttribute(Resource resource,
String group,
String name,
String value) |
CollectionSetBuilder |
withTimestamp(Date timestamp) |
public CollectionSetBuilder(CollectionAgent agent)
public CollectionSetBuilder withStatus(CollectionStatus status)
public CollectionSetBuilder withTimestamp(Date timestamp)
public CollectionSetBuilder withNumericAttribute(Resource resource, String group, String name, Number value, AttributeType type)
public CollectionSetBuilder withStringAttribute(Resource resource, String group, String name, String value)
public CollectionSet build()
Copyright © 2017. All rights reserved.