|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CastableToStructuresOperator
This interface contains methods for casts to structures: array, lists, maps and sets.
Method Summary | ||
---|---|---|
|
castToArrayOf(org.javaruntype.type.Type<X> type)
Casts the operator's target as an array of the specified type. |
|
|
castToListOf(org.javaruntype.type.Type<X> type)
Casts the operator's target as a list of the specified type. |
|
|
castToMapOf(org.javaruntype.type.Type<K> keyType,
org.javaruntype.type.Type<V> valueType)
Casts the operator's target as a map of the specified types. |
|
|
castToSetOf(org.javaruntype.type.Type<X> type)
Casts the operator's target as a set of the specified type. |
Method Detail |
---|
<X> Operator castToArrayOf(org.javaruntype.type.Type<X> type)
Casts the operator's target as an array of the specified type.
X
- the type of the elements of the arraytype
- the type of the elements of the array
<X> Operator castToListOf(org.javaruntype.type.Type<X> type)
Casts the operator's target as a list of the specified type.
X
- the type of the elements of the listtype
- the type of the elements of the list
<K,V> Operator castToMapOf(org.javaruntype.type.Type<K> keyType, org.javaruntype.type.Type<V> valueType)
Casts the operator's target as a map of the specified types.
K
- the type for the map's keysV
- the type for the map's valueskeyType
- the type for the map's keysvalueType
- the type for the map's values
<X> Operator castToSetOf(org.javaruntype.type.Type<X> type)
Casts the operator's target as a set of the specified type.
X
- the type of the elements of the settype
- the type of the elements of the set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |