@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCopy extends Object implements Notes.Copy
Notes.Copy.
Use the builder to create immutable instances:
ImmutableCopy.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCopy.Builder
Builds instances of type
ImmutableCopy. |
Notes.Copy| Modifier and Type | Method and Description |
|---|---|
static ImmutableCopy.Builder |
builder()
Creates a builder for
ImmutableCopy. |
static ImmutableCopy |
copyOf(Notes.Copy instance)
Creates an immutable copy of a
Notes.Copy value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCopy that have equal attribute values. |
String |
getDanger() |
String |
getDescription() |
String |
getIcon() |
String |
getImportant() |
String |
getIntroduction() |
String |
getNote() |
String |
getTip() |
String |
getTitle() |
String |
getWarning() |
int |
hashCode()
Computes a hash code from attributes:
warning, tip, important, danger, note, title, description, icon, introduction. |
String |
toString()
Prints the immutable value
Copy with attribute values. |
ImmutableCopy |
withDanger(String value)
Copy the current immutable object by setting a value for the
danger attribute. |
ImmutableCopy |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableCopy |
withIcon(String value)
Copy the current immutable object by setting a value for the
icon attribute. |
ImmutableCopy |
withImportant(String value)
Copy the current immutable object by setting a value for the
important attribute. |
ImmutableCopy |
withIntroduction(String value)
Copy the current immutable object by setting a value for the
introduction attribute. |
ImmutableCopy |
withNote(String value)
Copy the current immutable object by setting a value for the
note attribute. |
ImmutableCopy |
withTip(String value)
Copy the current immutable object by setting a value for the
tip attribute. |
ImmutableCopy |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutableCopy |
withWarning(String value)
Copy the current immutable object by setting a value for the
warning attribute. |
@Nullable public String getWarning()
getWarning in interface Noteswarning attribute@Nullable public String getImportant()
getImportant in interface Notesimportant attribute@Nullable public String getDescription()
getDescription in interface Notesdescription attribute@Nullable public String getIntroduction()
getIntroduction in interface Notesintroduction attributepublic final ImmutableCopy withWarning(@Nullable String value)
warning attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for warning (can be null)this objectpublic final ImmutableCopy withTip(@Nullable String value)
tip attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for tip (can be null)this objectpublic final ImmutableCopy withImportant(@Nullable String value)
important attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for important (can be null)this objectpublic final ImmutableCopy withDanger(@Nullable String value)
danger attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for danger (can be null)this objectpublic final ImmutableCopy withNote(@Nullable String value)
note attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for note (can be null)this objectpublic final ImmutableCopy withTitle(@Nullable String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for title (can be null)this objectpublic final ImmutableCopy withDescription(@Nullable String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for description (can be null)this objectpublic final ImmutableCopy withIcon(@Nullable String value)
icon attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for icon (can be null)this objectpublic final ImmutableCopy withIntroduction(@Nullable String value)
introduction attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for introduction (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableCopy that have equal attribute values.public int hashCode()
warning, tip, important, danger, note, title, description, icon, introduction.public String toString()
Copy with attribute values.public static ImmutableCopy copyOf(Notes.Copy instance)
Notes.Copy 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 ImmutableCopy.Builder builder()
ImmutableCopy.
ImmutableCopy.builder()
.warning(String | null) // nullable warning
.tip(String | null) // nullable tip
.important(String | null) // nullable important
.danger(String | null) // nullable danger
.note(String | null) // nullable note
.title(String | null) // nullable title
.description(String | null) // nullable description
.icon(String | null) // nullable icon
.introduction(String | null) // nullable introduction
.build();
Copyright © 2016–2019. All rights reserved.