Class ImmutableEntityState<T extends StencilClient.EntityBody>

    • Method Detail

      • getSrc

        public io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject> getSrc()
        Specified by:
        getSrc in interface StencilConfig.EntityState<T extends StencilClient.EntityBody>
        Returns:
        The value of the src attribute
      • withSrc

        public final ImmutableEntityState<T> withSrc​(io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject> value)
        Copy the current immutable object by setting a value for the src attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for src
        Returns:
        A modified copy of the this object
      • withEntity

        public final ImmutableEntityState<T> withEntity​(StencilClient.Entity<T> value)
        Copy the current immutable object by setting a value for the entity attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for entity
        Returns:
        A modified copy of the this object
      • equals

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

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

        public static <T extends StencilClient.EntityBodyImmutableEntityState.Builder<T> builder()
        Creates a builder for ImmutableEntityState.
         ImmutableEntityState.&lt;T&gt;builder()
            .src(io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult&lt;io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject&gt;) // required src
            .entity(io.thestencil.client.api.StencilClient.Entity&lt;T&gt;) // required entity
            .build();
         
        Type Parameters:
        T - generic parameter T
        Returns:
        A new ImmutableEntityState builder