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

com.freya02.botcommands.api.commands.application.slash.annotations.LongRange Maven / Gradle / Ivy

package com.freya02.botcommands.api.commands.application.slash.annotations;

import com.freya02.botcommands.api.commands.application.annotations.AppOption;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Allows setting minimum and maximum values on the specified {@link AppOption}.
 * 
This is only for integer types ! */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.PARAMETER}) public @interface LongRange { /** * @return The minimum value of this parameter (included) */ long from(); /** * @return The maximum value of this parameter (included) */ long to(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy