com.google.api.client.util
Class DataUtil

java.lang.Object
  extended by com.google.api.client.util.DataUtil

Deprecated. (scheduled to be removed in 1.5) Use Data

@Deprecated
public class DataUtil
extends Object

Utilities for working with key/value data.

Since:
1.0
Author:
Yaniv Inbar

Method Summary
static
<T> T
clone(T data)
          Deprecated. (scheduled to be removed in 1.5) Use Data.deepCopy(Object, Object) or Data.clone(Object)
static Map<String,Object> mapOf(Object data)
          Deprecated. (scheduled to be removed in 1.5) Use Data.mapOf(Object)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mapOf

@Deprecated
public static Map<String,Object> mapOf(Object data)
Deprecated. (scheduled to be removed in 1.5) Use Data.mapOf(Object)

Returns the map to use for the given key/value data.

Parameters:
data - any key value data, represented by an object or a map, or null
Returns:
if data is a map returns data; else if data is null, returns an empty map; else returns ReflectionMap on the data object

clone

@Deprecated
public static <T> T clone(T data)
Deprecated. (scheduled to be removed in 1.5) Use Data.deepCopy(Object, Object) or Data.clone(Object)

Returns a deep clone of the given key/value data, such that the result is a completely independent copy.

Note that final fields cannot be changed and therefore their value won't be copied.

Parameters:
data - key/value data object or map to clone or null for a null return value
Returns:
deep clone or null for null input


Copyright © 2010-2011 Google. All Rights Reserved.