package com.fp.general.keygen;

import org.apache.commons.lang.StringUtils;

public abstract class AbstractKeyGen {
    protected boolean isString(Class<?> pType) {
        return pType.getName().compareTo(String.class.getName()) == 0;
    }

    protected String fill(String pValue, String pFill, Integer pLength) {
        String val = pValue;
        return StringUtils.leftPad(val, pLength, pFill.charAt(0));
    }
}
