public.javadoc.org.spincast.plugins.attemptslimiter.AttemptsAutoIncrementType.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
AttemptsAutoIncrementType (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.attemptslimiter
Enum AttemptsAutoIncrementType
- java.lang.Object
-
- java.lang.Enum<AttemptsAutoIncrementType>
-
- org.spincast.plugins.attemptslimiter.AttemptsAutoIncrementType
-
- All Implemented Interfaces:
- Serializable, Comparable<AttemptsAutoIncrementType>
public enum AttemptsAutoIncrementType
extends Enum<AttemptsAutoIncrementType>
-
-
Enum Constant Summary
Enum Constants
Enum Constant and Description
ALWAYS
IF_MAX_NOT_REACHED
IF_MAX_REACHED
NEVER
-
Method Summary
All Methods Static Methods Concrete Methods
Modifier and Type
Method and Description
static AttemptsAutoIncrementType
valueOf(String name)
Returns the enum constant of this type with the specified name.
static AttemptsAutoIncrementType[]
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
-
-
Enum Constant Detail
-
NEVER
public static final AttemptsAutoIncrementType NEVER
-
ALWAYS
public static final AttemptsAutoIncrementType ALWAYS
-
IF_MAX_REACHED
public static final AttemptsAutoIncrementType IF_MAX_REACHED
-
IF_MAX_NOT_REACHED
public static final AttemptsAutoIncrementType IF_MAX_NOT_REACHED
-
Method Detail
-
values
public static AttemptsAutoIncrementType[] values()
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AttemptsAutoIncrementType c : AttemptsAutoIncrementType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttemptsAutoIncrementType valueOf(String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
Copyright © 2019. All rights reserved.