Package com.syzygy.events.database
Class DatabaseInstance.PropertyWrapper<V,W extends DatabaseInstance<W>>
java.lang.Object
com.syzygy.events.database.DatabaseInstance.PropertyWrapper<V,W>
- Type Parameters:
V
- The type of the valueW
- The type of the instance if applicable
- Direct Known Subclasses:
DatabaseInstance.InstancePropertyWrapper
- Enclosing class:
- DatabaseInstance<T extends DatabaseInstance<T>>
public static class DatabaseInstance.PropertyWrapper<V,W extends DatabaseInstance<W>>
extends Object
Designates a property and its current value for a database instance
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniS()
Returns the instance property wrapper of this wrappervoid
Sets the value from an Object value
-
Field Details
-
meta
The property meta data -
value
The current value
-
-
Constructor Details
-
PropertyWrapper
PropertyWrapper(DatabaseInstance.PropertyField<V, W> meta)
-
-
Method Details
-
setValue
Sets the value from an Object value- Parameters:
value
- The value- Throws:
ClassCastException
- if the value is not the correct type
-
iS
Returns the instance property wrapper of this wrapper- Returns:
- The casted property wrapper
- Throws:
ClassCastException
- If this property does not load an instance
-