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

com.enonic.xp.suggester.TermSuggestionOption Maven / Gradle / Ivy

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

public final class TermSuggestionOption
    extends SuggestionOption
{
    private final Integer freq;

    private TermSuggestionOption( final Builder builder )
    {
        super( builder );
        this.freq = builder.freq;
    }

    public Integer getFreq()
    {
        return freq;
    }

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

    public static class Builder
        extends SuggestionOption.Builder
    {
        private Integer freq;

        public Builder freq( final Integer freq )
        {
            this.freq = freq;
            return this;
        }

        @Override
        public TermSuggestionOption build()
        {
            return new TermSuggestionOption( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy