All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.issue.UpdateIssueParams Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.issue;

public final class UpdateIssueParams
{
    private final IssueId id;

    private final IssueEditor editor;

    private UpdateIssueParams( final Builder builder )
    {
        this.id = builder.id;
        this.editor = builder.editor;
    }

    public IssueId getId()
    {
        return id;
    }

    public IssueEditor getEditor()
    {
        return editor;
    }

    public static Builder create()
    {
        return new UpdateIssueParams.Builder();
    }

    public static class Builder
    {
        private IssueId id;

        private IssueEditor editor;

        private Builder()
        {
        }

        public Builder id( final IssueId id )
        {
            this.id = id;
            return this;
        }

        public Builder editor( final IssueEditor editor )
        {
            this.editor = editor;
            return this;
        }

        public UpdateIssueParams build()
        {
            return new UpdateIssueParams( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy