com.linkedin.restli.common
Class PatchRequest<T>

java.lang.Object
  extended by com.linkedin.data.template.RecordTemplate
      extended by com.linkedin.restli.common.PatchRequest<T>
All Implemented Interfaces:
com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>, java.lang.Cloneable

public class PatchRequest<T>
extends com.linkedin.data.template.RecordTemplate


Constructor Summary
PatchRequest()
          Initialize an empty PatchRequest.
PatchRequest(com.linkedin.data.DataMap dataMap)
          Initialize a PatchRequest based off of the given DataMap.
 
Method Summary
static
<T> PatchRequest<T>
createFromPatchDocument(com.linkedin.data.DataMap patchDocument)
          Initialize and return a PatchRequest off of the given patch document.
 com.linkedin.data.DataMap getPatchDocument()
           
 
Methods inherited from class com.linkedin.data.template.RecordTemplate
clone, contains, copy, data, equals, hashCode, obtainDirect, obtainWrapped, putDirect, putDirect, putDirect, putWrapped, putWrapped, remove, schema, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatchRequest

public PatchRequest()
Initialize an empty PatchRequest.


PatchRequest

public PatchRequest(com.linkedin.data.DataMap dataMap)
Initialize a PatchRequest based off of the given DataMap.

Parameters:
dataMap - a DataMap
Method Detail

createFromPatchDocument

public static <T> PatchRequest<T> createFromPatchDocument(com.linkedin.data.DataMap patchDocument)
Initialize and return a PatchRequest off of the given patch document.

Type Parameters:
T - the type of the object that the patchRequest will patch
Parameters:
patchDocument - a DataMap representing a patch
Returns:
a PatchRequest

getPatchDocument

public com.linkedin.data.DataMap getPatchDocument()
Returns:
the patch document