maia_modificado/.svn/pristine/84/84e5d2a9da44e63cec60579f0b3...

15 lines
421 B
Plaintext
Executable File

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));
}
}