com.google.api.ads.common.lib.utils
Class Choices

java.lang.Object
  extended by com.google.api.ads.common.lib.utils.Choices

public final class Choices
extends Object

A utility class for handling choice objects.

Author:
Adam Rogal

Method Summary
static 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
 

Method Detail

getValue

public static Object getValue(Object obj)
                       throws IllegalArgumentException,
                              IllegalAccessException
Gets the value of the choice object without having to inspect each field. Returns null if no non-null fields are found.

Parameters:
obj - the choice object to get the value from
Returns:
the value of the choice
Throws:
IllegalArgumentException - if obj == null
IllegalAccessException


Copyright © 2012. All Rights Reserved.