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

com.enonic.xp.dump.SystemLoadResult Maven / Gradle / Ivy

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

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class SystemLoadResult
    implements Iterable
{
    private final List repoLoadResults;

    private SystemLoadResult( final Builder builder )
    {
        repoLoadResults = builder.repoLoadResults;
    }

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

    @Override
    public Iterator iterator()
    {
        return this.repoLoadResults.iterator();
    }

    public static final class Builder
    {
        private final List repoLoadResults = new ArrayList<>();

        private Builder()
        {
        }

        public Builder add( final RepoLoadResult val )
        {
            repoLoadResults.add( val );
            return this;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy