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

com.develhack.lombok.javac.handlers.assertion.LessThanHandler Maven / Gradle / Ivy

Go to download

The library enhancing Java classes at compilation by annotations that contained in the Develhack Core Library.

There is a newer version: 0.1.5
Show newest version
package com.develhack.lombok.javac.handlers.assertion;

import java.util.Collections;
import java.util.Map;

import lombok.javac.JavacAnnotationHandler;

import org.mangosdk.spi.ProviderFor;

import com.develhack.annotation.assertion.LessThan;

@ProviderFor(JavacAnnotationHandler.class)
public class LessThanHandler extends AbstractThresholdAssertionHandler {

	public LessThanHandler() {
		super(LessThan.class);
	}

	@Override
	protected String getCheckMethodName() {
		return nullable ? "checkLessThanIfNonnull" : "checkLessThan";
	}

	@Override
	protected Map getAdditionalCondtionMap() {
		return Collections.singletonMap("value", annotationValues.getInstance().value());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy