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

com.binfast.adpter.core.paramconvert.LongGetter Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.binfast.adpter.core.paramconvert;

import com.binfast.adpter.core.ParamsHandler;
import com.binfast.adpter.core.kit.StrKit;

public class LongGetter extends ParaGetter {
	
	public LongGetter(String parameterName, String defaultValue) {
		super(parameterName,defaultValue);
	}

	@Override
	public Long get(ParamsHandler c) {
		return c.getParaToLong(getParameterName(),getDefaultValue());
	}

	@Override
	protected Long to(String v) {
		if(StrKit.notBlank(v)){
			return Long.parseLong(v);
		}
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy