Class BlocksChunk
java.lang.Object
com.hubspot.slack.client.methods.params.stream.chunks.BlocksChunk
- All Implemented Interfaces:
BlocksChunkIF,StreamChunk
@Generated(from="BlocksChunkIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BlocksChunk
extends Object
implements BlocksChunkIF
Immutable implementation of
BlocksChunkIF.
Use the builder to create immutable instances:
BlocksChunk.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.stream.chunks.BlocksChunkIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic BlocksChunk.Builderbuilder()Creates a builder forBlocksChunk.static BlocksChunkcopyOf(BlocksChunkIF instance) Creates an immutable copy of aBlocksChunkIFvalue.booleanThis instance is equal to all instances ofBlocksChunkthat have equal attribute values.com.google.common.collect.ImmutableList<Block> getType()inthashCode()Computes a hash code from attributes:type,blocks.toString()Prints the immutable valueBlocksChunkwith attribute values.final BlocksChunkwithBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.final BlocksChunkwithBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlocksChunkIF- Specified by:
getTypein interfaceStreamChunk- Returns:
- The computed-at-construction value of the
typeattribute
-
getBlocks
- Specified by:
getBlocksin interfaceBlocksChunkIF- Returns:
- The value of the
blocksattribute
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of blocks elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBlocksChunkthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,blocks. -
toString
Prints the immutable valueBlocksChunkwith attribute values. -
copyOf
Creates an immutable copy of aBlocksChunkIFvalue. 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 BlocksChunk instance
-
builder
Creates a builder forBlocksChunk.BlocksChunk.builder() .addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .build();- Returns:
- A new BlocksChunk builder
-