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

com.enonic.xp.repository.CreateBranchParams Maven / Gradle / Ivy

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

import com.enonic.xp.branch.Branch;

public class CreateBranchParams
{
    private final Branch branch;

    public CreateBranchParams( final Branch branch )
    {
        this.branch = branch;
    }

    public static CreateBranchParams from( final String branchId )
    {
        return new CreateBranchParams( Branch.from( branchId ) );
    }

    public static CreateBranchParams from( final Branch branch )
    {
        return new CreateBranchParams( branch );
    }


    public Branch getBranch()
    {
        return branch;
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy