@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTimerNameImpl extends TimerNameImpl
TimerNameImpl.
Use the builder to create immutable instances:
ImmutableTimerNameImpl.builder().
Use the static factory method to create immutable instances:
ImmutableTimerNameImpl.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTimerNameImpl.Builder
Builds instances of type
ImmutableTimerNameImpl. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTimerNameImpl.Builder |
builder()
Creates a builder for
ImmutableTimerNameImpl. |
static ImmutableTimerNameImpl |
copyOf(TimerNameImpl instance)
Creates an immutable copy of a
TimerNameImpl value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTimerNameImpl that have equal attribute values. |
boolean |
extended() |
TimerNameImpl |
extendedTimer() |
int |
hashCode()
Computes a hash code from attributes:
name, extended, extendedTimer, specialHashCode. |
String |
name() |
static ImmutableTimerNameImpl |
of(String name,
boolean extended)
Construct a new immutable
TimerNameImpl instance. |
int |
specialHashCode() |
String |
toString()
Prints the immutable value
TimerNameImpl with attribute values. |
ImmutableTimerNameImpl |
withExtended(boolean value)
Copy the current immutable object by setting a value for the
extended attribute. |
ImmutableTimerNameImpl |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public static ImmutableTimerNameImpl.Builder builder()
ImmutableTimerNameImpl.
ImmutableTimerNameImpl.builder()
.name(String) // required name
.extended(boolean) // required extended
.build();
public static ImmutableTimerNameImpl copyOf(TimerNameImpl instance)
TimerNameImpl 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 boolean equals(@Nullable Object another)
ImmutableTimerNameImpl that have equal attribute values.public boolean extended()
extended in class TimerNameImplextended attributepublic TimerNameImpl extendedTimer()
extendedTimer in class TimerNameImplextendedTimer attributepublic int hashCode()
name, extended, extendedTimer, specialHashCode.public String name()
name in class TimerNameImplname attributepublic static ImmutableTimerNameImpl of(String name, boolean extended)
TimerNameImpl instance.name - The value for the name attributeextended - The value for the extended attributepublic int specialHashCode()
specialHashCode in class TimerNameImplspecialHashCode attributepublic String toString()
TimerNameImpl with attribute values.public final ImmutableTimerNameImpl withExtended(boolean value)
extended attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for extendedthis objectpublic final ImmutableTimerNameImpl 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 objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.