@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewContainerIF"}) @Immutable public final class ViewContainer extends Object implements ViewContainerIF
ViewContainerIF.
Use the builder to create immutable instances:
ViewContainer.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewContainer.Builder
Builds instances of type
ViewContainer. |
| Modifier and Type | Method and Description |
|---|---|
static ViewContainer.Builder |
builder()
Creates a builder for
ViewContainer. |
static ViewContainer |
copyOf(ViewContainerIF instance)
Creates an immutable copy of a
ViewContainerIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewContainer that have equal attribute values. |
ContainerType |
getType() |
String |
getViewId() |
int |
hashCode()
Computes a hash code from attributes:
viewId, type. |
String |
toString()
Prints the immutable value
ViewContainer with attribute values. |
ViewContainer |
withType(ContainerType type)
Copy the current immutable object by setting a value for the
type attribute. |
ViewContainer |
withViewId(String viewId)
Copy the current immutable object by setting a value for the
viewId attribute. |
public String getViewId()
getViewId in interface ViewContainerIFviewId attributepublic ContainerType getType()
public final ViewContainer withViewId(String viewId)
viewId attribute.
An equals check used to prevent copying of the same value by returning this.viewId - A new value for viewIdthis objectpublic final ViewContainer withType(ContainerType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic boolean equals(@Nullable Object another)
ViewContainer that have equal attribute values.public int hashCode()
viewId, type.public String toString()
ViewContainer with attribute values.public static ViewContainer copyOf(ViewContainerIF instance)
ViewContainerIF 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 ViewContainer.Builder builder()
ViewContainer.Copyright © 2020. All rights reserved.