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

com.enonic.xp.vacuum.VacuumResult Maven / Gradle / Ivy

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

import java.util.List;

import com.google.common.collect.ImmutableList;

public class VacuumResult
{
    private final List results;

    private VacuumResult( final Builder builder )
    {
        results = builder.results.build();
    }

    public List getResults()
    {
        return results;
    }

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

    public static final class Builder
    {
        private final ImmutableList.Builder results = ImmutableList.builder();

        private Builder()
        {
        }

        public Builder add( final VacuumTaskResult val )
        {
            results.add( val );
            return this;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy