org.catools.common.facker.provider.CFakerCompanyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-randomize Show documentation
Show all versions of common-randomize Show documentation
The Common Randomize Implementation
package org.catools.common.facker.provider;
import lombok.AllArgsConstructor;
import org.catools.common.collections.CList;
import org.catools.common.facker.model.CRandomCompany;
@AllArgsConstructor
public class CFakerCompanyProvider {
private final CList companyNames;
private final CList companyPrefixes;
private final CList companySuffixes;
public CRandomCompany getAny() {
return new CRandomCompany(companyNames.getAny(), companyPrefixes.getAny(), companySuffixes.getAny());
}
}