Package io.dialob.boot.controller
Class ImmutablePageAttributes
java.lang.Object
io.dialob.boot.controller.ImmutablePageAttributes
- All Implemented Interfaces:
PageAttributes
@Generated(from="PageAttributes",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePageAttributes
extends Object
implements PageAttributes
Immutable implementation of
PageAttributes.
Use the builder to create immutable instances:
ImmutablePageAttributes.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePageAttributes. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePageAttributes.static ImmutablePageAttributescopyOf(PageAttributes instance) Creates an immutable copy of aPageAttributesvalue.booleanThis instance is equal to all instances ofImmutablePageAttributesthat have equal attribute values.inthashCode()Computes a hash code from attributes:attributes,template.toString()Prints the immutable valuePageAttributeswith attribute values.final ImmutablePageAttributeswithAttributes(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theattributesmap with the specified map.final ImmutablePageAttributeswithTemplate(String value) Copy the current immutable object by setting a value for thetemplateattribute.
-
Method Details
-
getAttributes
- Specified by:
getAttributesin interfacePageAttributes- Returns:
- The value of the
attributesattribute
-
getTemplate
- Specified by:
getTemplatein interfacePageAttributes- Returns:
- The value of the
templateattribute
-
withAttributes
Copy the current immutable object by replacing theattributesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the attributes map- Returns:
- A modified copy or
thisif not changed
-
withTemplate
Copy the current immutable object by setting a value for thetemplateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for template- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutablePageAttributesthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:attributes,template. -
toString
Prints the immutable valuePageAttributeswith attribute values. -
copyOf
Creates an immutable copy of aPageAttributesvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PageAttributes instance
-
builder
Creates a builder forImmutablePageAttributes.ImmutablePageAttributes.builder() .putAttributes|putAllAttributes(String => Object) //attributesmappings .template(String) // requiredtemplate.build();- Returns:
- A new ImmutablePageAttributes builder
-