Class ImmutableBatchCommand

    • Method Detail

      • withToBeCreated

        public final ImmutableBatchCommand withToBeCreated​(StencilClient.Entity... elements)
        Copy the current immutable object with elements that replace the content of toBeCreated.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withToBeCreated

        public final ImmutableBatchCommand withToBeCreated​(Iterable<? extends StencilClient.Entity> elements)
        Copy the current immutable object with elements that replace the content of toBeCreated. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of toBeCreated elements to set
        Returns:
        A modified copy of this object
      • withToBeSaved

        public final ImmutableBatchCommand withToBeSaved​(StencilClient.Entity... elements)
        Copy the current immutable object with elements that replace the content of toBeSaved.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withToBeSaved

        public final ImmutableBatchCommand withToBeSaved​(Iterable<? extends StencilClient.Entity> elements)
        Copy the current immutable object with elements that replace the content of toBeSaved. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of toBeSaved elements to set
        Returns:
        A modified copy of this object
      • withToBeDeleted

        public final ImmutableBatchCommand withToBeDeleted​(StencilClient.Entity... elements)
        Copy the current immutable object with elements that replace the content of toBeDeleted.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withToBeDeleted

        public final ImmutableBatchCommand withToBeDeleted​(Iterable<? extends StencilClient.Entity> elements)
        Copy the current immutable object with elements that replace the content of toBeDeleted. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of toBeDeleted elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableBatchCommand 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: toBeCreated, toBeSaved, toBeDeleted.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableBatchCommand copyOf​(StencilStore.BatchCommand instance)
        Creates an immutable copy of a StencilStore.BatchCommand 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 BatchCommand instance
      • builder

        public static ImmutableBatchCommand.Builder builder()
        Creates a builder for ImmutableBatchCommand.
         ImmutableBatchCommand.builder()
            .addToBeCreated|addAllToBeCreated(io.thestencil.client.api.StencilClient.Entity) // toBeCreated elements
            .addToBeSaved|addAllToBeSaved(io.thestencil.client.api.StencilClient.Entity) // toBeSaved elements
            .addToBeDeleted|addAllToBeDeleted(io.thestencil.client.api.StencilClient.Entity) // toBeDeleted elements
            .build();
         
        Returns:
        A new ImmutableBatchCommand builder