com.threerings.antidote.property
Class EnumProperty<T extends Enum<T>>
java.lang.Object
com.threerings.antidote.property.BaseProperty<T>
com.threerings.antidote.property.EnumProperty<T>
- All Implemented Interfaces:
- Mutable, Property<T>, RequiresValidation
public class EnumProperty<T extends Enum<T>>
- extends BaseProperty<T>
A BaseProperty
that holds an Enum
object.
Method Summary |
protected T |
validateProperty()
Give each Property a chance to do property specific validation and return the
validated value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumProperty
public EnumProperty(String name,
Field field,
Class<T> enumClass)
EnumProperty
public EnumProperty(String name,
Field field,
Class<T> enumClass,
T defaultValue)
validateProperty
protected T 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<T extends Enum<T>>
Copyright © 2007-2008 Three Rings Design, Inc.
All Rights Reserved. Released under a BSD license.