public class EmbeddedWrappers extends Object
Constructor and Description |
---|
EmbeddedWrappers(boolean preferCollections)
Creates a new
EmbeddedWrappers . |
Modifier and Type | Method and Description |
---|---|
EmbeddedWrapper |
wrap(Object source)
Creates a new
EmbeddedWrapper that |
EmbeddedWrapper |
wrap(Object source,
String rel)
Creates a new
EmbeddedWrapper with the given rel. |
public EmbeddedWrappers(boolean preferCollections)
EmbeddedWrappers
.preferCollections
- whether wrappers for single elements should rather treat the value as collection.public EmbeddedWrapper wrap(Object source)
EmbeddedWrapper
thatsource
- public EmbeddedWrapper wrap(Object source, String rel)
EmbeddedWrapper
with the given rel.source
- can be null, will return null if so.rel
- must not be null or empty.Copyright © 2012-2014–2015 Pivotal, Inc.. All rights reserved.