Skip to content

Should opt for immutability where we can #67

@xibz

Description

@xibz

Currently all objects in the SDK are mutable. If a new event or object is needed, it should be recreated, instead of using setters to set things.

public void setContent(Content content) {
this.content = content;
}

Instead we should utilize the builder pattern, imo. Look at lombok, https://projectlombok.org/features/Builder. This will make it a lot easier to generate these and make them properly immutable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions