com.google.api.ads.common.lib.utils
Class ChoiceUtils
java.lang.Object
com.google.api.ads.common.lib.utils.ChoiceUtils
public final class ChoiceUtils
- extends Object
A utility class for handling choice objects.
- Author:
- Adam Rogal
|
Method Summary |
Object |
getValue(Object obj)
Gets the value of the choice object without having to inspect each
field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChoiceUtils
public ChoiceUtils()
- Default constructor.
getValue
public Object getValue(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Gets the value of the choice object without having to inspect each
field.
- Parameters:
obj - the choice object to get the value from
- Returns:
- the value of the choice
- Throws:
IllegalArgumentException - if obj == null
IllegalAccessException - if the non-null field cannot be accessed in
the choice object
Copyright © 2012. All Rights Reserved.