@NotThreadSafe public static final class ImmutablePropertyDescriptor.Builder extends Object
ImmutablePropertyDescriptor.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public ImmutablePropertyDescriptor build()
ImmutablePropertyDescriptor.IllegalStateException - if any required attributes are missingpublic final ImmutablePropertyDescriptor.Builder checkboxLabel(String checkboxLabel)
checkboxLabel attribute.
If not set, this attribute will have a default value as returned by the initializer of checkboxLabel.
checkboxLabel - The value for checkboxLabelthis builder for use in a chained invocationpublic final ImmutablePropertyDescriptor.Builder copyFrom(PropertyDescriptor instance)
PropertyDescriptor instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutablePropertyDescriptor.Builder defaultValue(PropertyValue defaultValue)
defaultValue attribute.defaultValue - The value for defaultValue (can be null)this builder for use in a chained invocationpublic final ImmutablePropertyDescriptor.Builder description(String description)
description attribute.
If not set, this attribute will have a default value as returned by the initializer of description.
description - The value for descriptionthis builder for use in a chained invocationpublic final ImmutablePropertyDescriptor.Builder label(String label)
label attribute.label - The value for labelthis builder for use in a chained invocationpublic final ImmutablePropertyDescriptor.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ImmutablePropertyDescriptor.Builder type(PropertyValue.PropertyType type)
type attribute.type - The value for typethis builder for use in a chained invocationCopyright © 2011–2020 Glowroot contributors. All rights reserved.