@Beta public class UnionValueOptionContext extends Object
| Constructor and Description | 
|---|
UnionValueOptionContext(Class<?> unionType,
                       Class<?> valueType,
                       Method getter,
                       org.opendaylight.yangtools.concepts.Codec<Object,Object> codec)
Prepare union as binding object and codec for this object, make a direct method handle of getting union
 type and constructor of union type for initializing it. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
deserializeUnion(Object input)
Deserialize input object via prepared codec for invoking new object of union as binding. 
 | 
boolean | 
equals(Object obj)  | 
int | 
hashCode()  | 
Object | 
serialize(Object input)
Serialize input based on prepared codec. 
 | 
public UnionValueOptionContext(Class<?> unionType, Class<?> valueType, Method getter, org.opendaylight.yangtools.concepts.Codec<Object,Object> codec)
unionType - - union as binding objectvalueType - - returned type of uniongetter - - method for getting union typecodec - - codec for serialize/deserialize type of unionpublic Object serialize(Object input)
input - - object to serializepublic Object deserializeUnion(Object input)
input - - input object for deserializingCopyright © 2018 OpenDaylight. All rights reserved.