org.wamblee.reflection
Interface Accessor<T>

Type Parameters:
T -
All Known Implementing Classes:
FieldAccessor, PropertyAccessor

public interface Accessor<T>

Abstraction for accessing fields or properties of an object.

Author:
Erik Brakkee

Method Summary
 T get(Object aObject)
          Gets the value.
 Class<T> getType()
          Gets the type of the value.
 void set(Object aObject, T aValue)
          Sets the value.
 

Method Detail

set

void set(Object aObject,
         T aValue)
Sets the value.

Parameters:
aObject - Object.
aValue - Value.

get

T get(Object aObject)
Gets the value.

Parameters:
aObject - Object
Returns:
Value

getType

Class<T> getType()
Gets the type of the value.

Returns:


Copyright © 2011. All Rights Reserved.