com.iparelan.util.validation
Enum RangeValidationStrategy.ContextMinMaxIndexOffset

java.lang.Object
  extended by java.lang.Enum<RangeValidationStrategy.ContextMinMaxIndexOffset>
      extended by com.iparelan.util.validation.RangeValidationStrategy.ContextMinMaxIndexOffset
All Implemented Interfaces:
Serializable, Comparable<RangeValidationStrategy.ContextMinMaxIndexOffset>
Enclosing class:
RangeValidationStrategy<T extends Comparable<? super T>>

protected static enum RangeValidationStrategy.ContextMinMaxIndexOffset
extends Enum<RangeValidationStrategy.ContextMinMaxIndexOffset>

Offsets from the context position where the minimum is specified. See the documentation for the context parameter of validate(T, Object...) for more information.


Enum Constant Summary
MAXIMUM
           
MINIMUM
           
 
Method Summary
static RangeValidationStrategy.ContextMinMaxIndexOffset valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RangeValidationStrategy.ContextMinMaxIndexOffset[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MINIMUM

public static final RangeValidationStrategy.ContextMinMaxIndexOffset MINIMUM

MAXIMUM

public static final RangeValidationStrategy.ContextMinMaxIndexOffset MAXIMUM
Method Detail

values

public static RangeValidationStrategy.ContextMinMaxIndexOffset[] 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 (RangeValidationStrategy.ContextMinMaxIndexOffset c : RangeValidationStrategy.ContextMinMaxIndexOffset.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RangeValidationStrategy.ContextMinMaxIndexOffset 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 © 2008 Iparelan Solutions, LLC. All rights reserved.