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

com.enonic.xp.content.FindContentPathsByQueryResult Maven / Gradle / Ivy

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

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public final class FindContentPathsByQueryResult
{
    private final ContentPaths contentPaths;

    private final long totalHits;

    private final long hits;

    private FindContentPathsByQueryResult( final Builder builder )
    {
        this.contentPaths = builder.contentPaths;
        this.totalHits = builder.totalHits;
        this.hits = builder.hits;
    }

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

    public ContentPaths getContentPaths()
    {
        return contentPaths;
    }

    public long getTotalHits()
    {
        return totalHits;
    }

    public long getHits()
    {
        return hits;
    }

    public static final class Builder
    {
        private ContentPaths contentPaths = ContentPaths.empty();

        private long totalHits = 0;

        private long hits = 0;

        private Builder()
        {
        }

        public Builder contentPaths( ContentPaths contentPaths )
        {
            this.contentPaths = contentPaths;
            return this;
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy