de.smartics.properties.api.core.annotations
Annotation Type PropertyIntValueRange


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface PropertyIntValueRange

Defines the range of valid integer values of a property.

 
   
   

Examples

@PropertySet("myprops")
public interface MyProperties {
...
  @PropertyIntValueRange(
      value = { 0, 1, 2, 3, 5, 8, 13, 21, 50, 100 },
      defaultValue = 8)
  Integer intValueRange();
}

See Also:
PropertyStringValueRange

Required Element Summary
 int[] value
          The enumeration of valid property values.
 
Optional Element Summary
 int[] defaultValue
          The default value to use, if no other value is specified.
 

Element Detail

value

public abstract int[] value
The enumeration of valid property values.

defaultValue

public abstract int[] defaultValue
The default value to use, if no other value is specified.

Default:
{}


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.