@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","DividerIF"}) @Immutable public final class Divider extends Object implements DividerIF
DividerIF.
Use the builder to create immutable instances:
Divider.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Divider.Builder
Builds instances of type
Divider. |
| Modifier and Type | Method and Description |
|---|---|
static Divider.Builder |
builder()
Creates a builder for
Divider. |
static Divider |
copyOf(DividerIF instance)
Creates an immutable copy of a
DividerIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Divider that have equal attribute values. |
Optional<String> |
getBlockId() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, blockId. |
String |
toString()
Prints the immutable value
Divider with attribute values. |
Divider |
withBlockId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
blockId attribute. |
Divider |
withBlockId(String value)
Copy the current immutable object by setting a present value for the optional
blockId attribute. |
public String getType()
public Optional<String> getBlockId()
getBlockId in interface BlockblockId attributepublic final Divider withBlockId(@Nullable String value)
blockId attribute.value - The value for blockId, null is accepted as java.util.Optional.empty()this objectpublic final Divider withBlockId(Optional<String> optional)
blockId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for blockIdthis objectpublic boolean equals(@Nullable Object another)
Divider that have equal attribute values.public int hashCode()
type, blockId.public String toString()
Divider with attribute values.public static Divider copyOf(DividerIF instance)
DividerIF 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 Divider.Builder builder()
Divider.Copyright © 2019. All rights reserved.