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

com.j256.ormlite.field.types.FloatType Maven / Gradle / Ivy

package com.j256.ormlite.field.types;

import com.j256.ormlite.field.SqlType;

/**
 * Type that persists a float primitive.
 * 
 * @author graywatson
 */
public class FloatType extends FloatObjectType {

	private static final FloatType singleTon = new FloatType();

	public static FloatType getSingleton() {
		return singleTon;
	}

	private FloatType() {
		super(SqlType.FLOAT, new Class[] { float.class });
	}

	/**
	 * Here for others to subclass.
	 */
	protected FloatType(SqlType sqlType, Class[] classes) {
		super(sqlType, classes);
	}

	@Override
	public boolean isPrimitive() {
		return true;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy