com.threerings.antidote.property
Class IntegerProperty

java.lang.Object
  extended by com.threerings.antidote.property.BaseProperty<Integer>
      extended by com.threerings.antidote.property.IntegerProperty
All Implemented Interfaces:
Mutable, Property<Integer>, RequiresValidation

public class IntegerProperty
extends BaseProperty<Integer>

A BaseProperty that holds an Integer object.


Constructor Summary
IntegerProperty(String name, Field field)
           
IntegerProperty(String name, Field field, int defaultValue)
           
 
Method Summary
protected  Integer validateProperty()
          Give each Property a chance to do property specific validation and return the validated value.
 
Methods inherited from class com.threerings.antidote.property.BaseProperty
appendViolation, getField, getPropertyName, getRawValue, getValue, isNotSet, isSet, setValue, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerProperty

public IntegerProperty(String name,
                       Field field)

IntegerProperty

public IntegerProperty(String name,
                       Field field,
                       int defaultValue)
Method Detail

validateProperty

protected Integer validateProperty()
Description copied from class: BaseProperty
Give each Property a chance to do property specific validation and return the validated value. If the raw value could not turned into a valid value, this will return null.

Specified by:
validateProperty in class BaseProperty<Integer>


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.