T
- The type of datapublic interface MetaData<T>
Modifier and Type | Method and Description |
---|---|
T |
cast(Object value)
Casts the specified value to data type.
|
Constraint<? super T> |
getConstraint()
Returns constraint to be used for data validation.
|
Class<T> |
getType()
Returns the type of data.
|
Constraint<? super T> getConstraint()
null
.T cast(Object value)
value
- Value to be cast.ClassCastException
- if the specified value is not assignable to
data type.Copyright © 2011–2020 FoxLabs. All rights reserved.