Class RawNumberTableCell
java.lang.Object
com.hubspot.slack.client.models.blocks.table.RawNumberTableCell
- All Implemented Interfaces:
DataTableCell,RawNumberTableCellIF,TableCell
@Generated(from="RawNumberTableCellIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RawNumberTableCell
extends Object
implements RawNumberTableCellIF
Immutable implementation of
RawNumberTableCellIF.
Use the builder to create immutable instances:
RawNumberTableCell.builder().
Use the static factory method to create immutable instances:
RawNumberTableCell.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.table.RawNumberTableCellIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RawNumberTableCell.Builderbuilder()Creates a builder forRawNumberTableCell.static RawNumberTableCellcopyOf(RawNumberTableCellIF instance) Creates an immutable copy of aRawNumberTableCellIFvalue.booleanThis instance is equal to all instances ofRawNumberTableCellthat have equal attribute values.getText()getType()doublegetValue()inthashCode()Computes a hash code from attributes:type,value,text.static RawNumberTableCellConstruct a new immutableRawNumberTableCellinstance.toString()Prints the immutable valueRawNumberTableCellwith attribute values.final RawNumberTableCellCopy the current immutable object by setting a value for thetextattribute.final RawNumberTableCellwithValue(double value) Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceRawNumberTableCellIF- Specified by:
getTypein interfaceTableCell- Returns:
- The computed-at-construction value of the
typeattribute
-
getValue
public double getValue()- Specified by:
getValuein interfaceRawNumberTableCellIF- Returns:
- The value of the
valueattribute
-
getText
- Specified by:
getTextin interfaceRawNumberTableCellIF- Returns:
- The value of the
textattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withText
Copy the current immutable object by setting a value for thetextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for text- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofRawNumberTableCellthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,value,text. -
toString
Prints the immutable valueRawNumberTableCellwith attribute values. -
of
Construct a new immutableRawNumberTableCellinstance.- Parameters:
value- The value for thevalueattributetext- The value for thetextattribute- Returns:
- An immutable RawNumberTableCell instance
-
copyOf
Creates an immutable copy of aRawNumberTableCellIFvalue. 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 RawNumberTableCell instance
-
builder
Creates a builder forRawNumberTableCell.RawNumberTableCell.builder() .setValue(double) // requiredvalue.setText(String) // requiredtext.build();- Returns:
- A new RawNumberTableCell builder
-