@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSection extends Object implements Notes.Section
Notes.Section.
Use the builder to create immutable instances:
ImmutableSection.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSection.Builder
Builds instances of type
ImmutableSection. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSection.Builder |
builder()
Creates a builder for
ImmutableSection. |
static ImmutableSection |
copyOf(Notes.Section instance)
Creates an immutable copy of a
Notes.Section value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSection that have equal attribute values. |
String |
getText() |
String |
getTitle() |
int |
hashCode()
Computes a hash code from attributes:
title, text. |
String |
toString()
Prints the immutable value
Section with attribute values. |
ImmutableSection |
withText(String value)
Copy the current immutable object by setting a value for the
text attribute. |
ImmutableSection |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
public String getTitle()
getTitle in interface Notes.Sectiontitle attributepublic String getText()
getText in interface Notes.Sectiontext attributepublic final ImmutableSection withTitle(String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for titlethis objectpublic final ImmutableSection withText(String value)
text attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for textthis objectpublic boolean equals(@Nullable Object another)
ImmutableSection that have equal attribute values.public int hashCode()
title, text.public String toString()
Section with attribute values.public static ImmutableSection copyOf(Notes.Section instance)
Notes.Section 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 static ImmutableSection.Builder builder()
ImmutableSection.
ImmutableSection.builder()
.title(String) // required title
.text(String) // required text
.build();
Copyright © 2016–2025. All rights reserved.