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().

  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface RichTextTableCellIF
      Specified by:
      getType in interface TableCell
      Returns:
      The computed-at-construction value of the type attribute
    • getElements

      public com.google.common.collect.ImmutableList<RichTextObject> getElements()
      Specified by:
      getElements in interface RichTextTableCellIF
      Returns:
      The value of the elements attribute
    • withElements

      public final RichTextTableCell withElements(RichTextObject... elements)
      Copy the current immutable object with elements that replace the content of elements.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withElements

      public final RichTextTableCell withElements(Iterable<? extends RichTextObject> elements)
      Copy the current immutable object with elements that replace the content of elements. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of elements elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of RichTextTableCell that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: type, elements.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value RichTextTableCell with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static RichTextTableCell copyOf(RichTextTableCellIF instance)
      Creates an immutable copy of a RichTextTableCellIF value. 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

      public static RichTextTableCell.Builder builder()
      Creates a builder for RichTextTableCell.
       RichTextTableCell.builder()
          .addElements|addAllElements(com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextObject) // elements elements
          .build();
       
      Returns:
      A new RichTextTableCell builder