Class RichTextTableCell
java.lang.Object
com.hubspot.slack.client.models.blocks.table.RichTextTableCell
- All Implemented Interfaces:
DataTableCell,RichTextTableCellIF,TableCell
@Generated(from="RichTextTableCellIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RichTextTableCell
extends Object
implements RichTextTableCellIF
Immutable implementation of
RichTextTableCellIF.
Use the builder to create immutable instances:
RichTextTableCell.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.table.RichTextTableCellIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RichTextTableCell.Builderbuilder()Creates a builder forRichTextTableCell.static RichTextTableCellcopyOf(RichTextTableCellIF instance) Creates an immutable copy of aRichTextTableCellIFvalue.booleanThis instance is equal to all instances ofRichTextTableCellthat have equal attribute values.com.google.common.collect.ImmutableList<RichTextObject> getType()inthashCode()Computes a hash code from attributes:type,elements.toString()Prints the immutable valueRichTextTableCellwith attribute values.final RichTextTableCellwithElements(RichTextObject... elements) Copy the current immutable object with elements that replace the content ofelements.final RichTextTableCellwithElements(Iterable<? extends RichTextObject> elements) Copy the current immutable object with elements that replace the content ofelements.
-
Method Details
-
getType
- Specified by:
getTypein interfaceRichTextTableCellIF- Specified by:
getTypein interfaceTableCell- Returns:
- The computed-at-construction value of the
typeattribute
-
getElements
- Specified by:
getElementsin interfaceRichTextTableCellIF- Returns:
- The value of the
elementsattribute
-
withElements
Copy the current immutable object with elements that replace the content ofelements.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withElements
Copy the current immutable object with elements that replace the content ofelements. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of elements elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofRichTextTableCellthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,elements. -
toString
Prints the immutable valueRichTextTableCellwith attribute values. -
copyOf
Creates an immutable copy of aRichTextTableCellIFvalue. 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 RichTextTableCell instance
-
builder
Creates a builder forRichTextTableCell.RichTextTableCell.builder() .addElements|addAllElements(com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextObject) //elementselements .build();- Returns:
- A new RichTextTableCell builder
-