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

com.enonic.xp.issue.FindIssuesResult 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 FindIssuesResult
{
    private final List issues;

    private final long totalHits;

    private final long hits;

    private FindIssuesResult( Builder builder )
    {
        this.issues = builder.issues;
        this.hits = builder.hits;
        this.totalHits = builder.totalHits;
    }

    public List getIssues()
    {
        return issues;
    }

    public long getTotalHits()
    {
        return totalHits;
    }

    public long getHits()
    {
        return hits;
    }

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

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

        private long totalHits;

        private long hits;

        private Builder()
        {
        }

        public Builder issues( final List issues )
        {
            this.issues = issues;
            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 FindIssuesResult build()
        {
            return new FindIssuesResult( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy