Spring Hateoas

org.springframework.hateoas.core
Class ObjectUtils

java.lang.Object
  extended by org.springframework.hateoas.core.ObjectUtils

public class ObjectUtils
extends Object

Simple helper class.

Author:
Oliver Gierke

Constructor Summary
ObjectUtils()
           
 
Method Summary
static Object getResourceType(Object object)
          Returns the resource type of the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtils

public ObjectUtils()
Method Detail

getResourceType

public static Object getResourceType(Object object)
Returns the resource type of the given object. In case a Resource is given, it will return the Resource content's type.

Parameters:
object - can be null.
Returns:

Spring Hateoas

Copyright © 2012-2014-2014 Pivotal, Inc.. All Rights Reserved.