com.linkedin.restli.common
Class EmptyRecord
java.lang.Object
com.linkedin.data.template.RecordTemplate
com.linkedin.restli.common.EmptyRecord
- All Implemented Interfaces:
- com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>, java.lang.Cloneable
@Generated(value="com.linkedin.pegasus.generator.PegasusDataTemplateGenerator",
comments="LinkedIn Data Template. Generated from /Users/jbetz/projects/pegasus_trunk/pegasus/restli-common/src/main/pegasus/com/linkedin/restli/common/EmptyRecord.pdsc.",
date="Thu Oct 24 11:16:22 PDT 2013")
public class EmptyRecord- extends com.linkedin.data.template.RecordTemplate
An literally empty record. Intended as a marker to indicate the absence of content where a record type is required. If used the underlying DataMap *must* be empty, EmptyRecordValidator is provided to help enforce this. For example, CreateRequest extends Request to indicate it has no response body. Also, a ComplexKeyResource implementation that has no ParamKey should have a signature like XyzResource implements ComplexKeyResource.
| Methods inherited from class com.linkedin.data.template.RecordTemplate |
contains, 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 |
EmptyRecord
public EmptyRecord()
EmptyRecord
public EmptyRecord(com.linkedin.data.DataMap data)
fields
public static EmptyRecord.Fields fields()
clone
public EmptyRecord clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone in interface com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>- Overrides:
clone in class com.linkedin.data.template.RecordTemplate
- Throws:
java.lang.CloneNotSupportedException
copy
public EmptyRecord copy()
throws java.lang.CloneNotSupportedException
- Specified by:
copy in interface com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>- Overrides:
copy in class com.linkedin.data.template.RecordTemplate
- Throws:
java.lang.CloneNotSupportedException