@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePropertyDescriptor extends PropertyDescriptor
PropertyDescriptor.
Use the builder to create immutable instances:
ImmutablePropertyDescriptor.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePropertyDescriptor.Builder
Builds instances of type
ImmutablePropertyDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePropertyDescriptor.Builder |
builder()
Creates a builder for
ImmutablePropertyDescriptor. |
String |
checkboxLabel() |
static ImmutablePropertyDescriptor |
copyOf(PropertyDescriptor instance)
Creates an immutable copy of a
PropertyDescriptor value. |
PropertyValue |
defaultValue() |
String |
description() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePropertyDescriptor that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, type, defaultValue, label, checkboxLabel, description. |
String |
label() |
String |
name() |
String |
toString()
Prints the immutable value
PropertyDescriptor with attribute values. |
PropertyValue.PropertyType |
type() |
ImmutablePropertyDescriptor |
withCheckboxLabel(String value)
Copy the current immutable object by setting a value for the
checkboxLabel attribute. |
ImmutablePropertyDescriptor |
withDefaultValue(PropertyValue value)
Copy the current immutable object by setting a value for the
defaultValue attribute. |
ImmutablePropertyDescriptor |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutablePropertyDescriptor |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutablePropertyDescriptor |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutablePropertyDescriptor |
withType(PropertyValue.PropertyType value)
Copy the current immutable object by setting a value for the
type attribute. |
public static ImmutablePropertyDescriptor.Builder builder()
ImmutablePropertyDescriptor.
ImmutablePropertyDescriptor.builder()
.name(String) // required name
.type(org.glowroot.common.config.PropertyValue.PropertyType) // required type
.defaultValue(org.glowroot.common.config.PropertyValue | null) // nullable defaultValue
.label(String) // required label
.checkboxLabel(String) // optional checkboxLabel
.description(String) // optional description
.build();
public String checkboxLabel()
checkboxLabel in class PropertyDescriptorcheckboxLabel attributepublic static ImmutablePropertyDescriptor copyOf(PropertyDescriptor instance)
PropertyDescriptor value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic PropertyValue defaultValue()
defaultValue in class PropertyDescriptordefaultValue attributepublic String description()
description in class PropertyDescriptordescription attributepublic boolean equals(@Nullable Object another)
ImmutablePropertyDescriptor that have equal attribute values.public int hashCode()
name, type, defaultValue, label, checkboxLabel, description.public String label()
label in class PropertyDescriptorlabel attributepublic String name()
name in class PropertyDescriptorname attributepublic String toString()
PropertyDescriptor with attribute values.public PropertyValue.PropertyType type()
type in class PropertyDescriptortype attributepublic final ImmutablePropertyDescriptor withCheckboxLabel(String value)
checkboxLabel attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for checkboxLabelthis objectpublic final ImmutablePropertyDescriptor withDefaultValue(PropertyValue value)
defaultValue attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for defaultValue (can be null)this objectpublic final ImmutablePropertyDescriptor withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptionthis objectpublic final ImmutablePropertyDescriptor withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for labelthis objectpublic final ImmutablePropertyDescriptor withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutablePropertyDescriptor withType(PropertyValue.PropertyType value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.