public static final class TypeObjectMap.FieldHandler extends Object implements TypeObjectMap.Accessor, TypeObjectMap.Mutator
TypeObjectMap.Accessor
and TypeObjectMap.Mutator
that provides access to a
specified field using reflection. The field must be public.Constructor and Description |
---|
TypeObjectMap.FieldHandler(Field field)
Creates a
TypeObjectMap.FieldHandler for the specified field. |
public TypeObjectMap.FieldHandler(Field field)
TypeObjectMap.FieldHandler
for the specified field.field
- the fieldpublic Object get(Object o)
get
in interface TypeObjectMap.Accessor
o
- the objectGPUdbRuntimeException
- if the value could not be retrievedpublic void set(Object o, Object value)
set
in interface TypeObjectMap.Mutator
o
- the objectvalue
- the new value of the fieldGPUdbRuntimeException
- if the value could not be setCopyright © 2017. All rights reserved.