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

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

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

import com.enonic.xp.branch.Branch;

public class BranchLoadResult
    extends AbstractLoadResult
{
    private final Branch branch;

    private BranchLoadResult( final Builder builder )
    {
        super( builder );
        this.branch = builder.branch;
    }

    public Branch getBranch()
    {
        return branch;
    }

    public static Builder create( final Branch branch )
    {
        return new Builder( branch );
    }

    public static final class Builder
        extends AbstractLoadResult.Builder
    {
        private final Branch branch;

        private Builder( final Branch branch )
        {
            super();
            this.branch = branch;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy