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

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

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.issue;


import java.util.Collections;
import java.util.List;

public final class FindIssueCommentsResult
{
    private final List comments;

    private final long totalHits;

    private final long hits;

    private FindIssueCommentsResult( Builder builder )
    {
        this.comments = builder.comments;
        this.hits = builder.hits;
        this.totalHits = builder.totalHits;
    }

    public List getIssueComments()
    {
        return comments;
    }

    public long getTotalHits()
    {
        return totalHits;
    }

    public long getHits()
    {
        return hits;
    }

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

    public static class Builder
    {
        private List comments = Collections.emptyList();

        private long totalHits;

        private long hits;

        private Builder()
        {
        }

        public Builder comments( final List comments )
        {
            this.comments = comments;
            return this;
        }

        public Builder hits( final long hits )
        {
            this.hits = hits;
            return this;
        }

        public Builder totalHits( final long totalHits )
        {
            this.totalHits = totalHits;
            return this;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy