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

com.thegoate.utils.fill.serialize.nullable.primitive.NullableDoubleCaster Maven / Gradle / Ivy

package com.thegoate.utils.fill.serialize.nullable.primitive;

import com.thegoate.utils.fill.serialize.CastUtil;
import com.thegoate.utils.fill.serialize.GoateCastUtility;

@CastUtil
public class NullableDoubleCaster extends GoateCastUtility {

	public NullableDoubleCaster(Object value) {
		super(value);
	}

	@Override
	public boolean isType(Object check) {
		return check == NullableDouble.class;
	}

	@Override
	public  T cast(Class type) {
		T t = null;
		if(value!=null){
			t = (T)new NullableDouble(""+value);
		}
		return t;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy