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

org.bitbucket.cowwoc.requirements.java.internal.PrimitiveFloatingPointVerifierNoOp Maven / Gradle / Ivy

/*
 * Copyright (c) 2019 Gili Tzabari
 * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
 */
package org.bitbucket.cowwoc.requirements.java.internal;

import org.bitbucket.cowwoc.requirements.java.PrimitiveFloatingPointVerifier;
import org.bitbucket.cowwoc.requirements.java.internal.extension.AbstractFloatingPointVerifierNoOp;

/**
 * A {@code PrimitiveFloatingPointVerifier} that does nothing.
 *
 * @param  the type of the floating-point number
 */
public final class PrimitiveFloatingPointVerifierNoOp>
	extends AbstractFloatingPointVerifierNoOp, T>
	implements PrimitiveFloatingPointVerifier
{
	private static final PrimitiveFloatingPointVerifierNoOp INSTANCE =
		new PrimitiveFloatingPointVerifierNoOp<>();

	/**
	 * @param  the type of the value being verified
	 * @return the singleton instance
	 */
	public static > PrimitiveFloatingPointVerifierNoOp getInstance()
	{
		@SuppressWarnings("unchecked")
		PrimitiveFloatingPointVerifierNoOp result = (PrimitiveFloatingPointVerifierNoOp) INSTANCE;
		return result;
	}

	/**
	 * Prevent construction.
	 */
	private PrimitiveFloatingPointVerifierNoOp()
	{
	}

	@Override
	protected PrimitiveFloatingPointVerifier getThis()
	{
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy