Class CollectionModelMixin<T>
java.lang.Object
org.springframework.hateoas.RepresentationModel<CollectionModel<T>>
org.springframework.hateoas.CollectionModel<T>
org.springframework.hateoas.mediatype.hal.CollectionModelMixin<T>
- All Implemented Interfaces:
Iterable<T>
,ResolvableTypeProvider
Custom mixin to to render collection content as _embedded.
- Author:
- Alexander Baetz, Oliver Gierke, Greg Turnquist
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.hateoas.CollectionModel
empty, empty, empty, empty, empty, empty, equals, getResolvableType, hashCode, iterator, of, of, of, toString, withFallbackType, withFallbackType, withFallbackType, wrap
Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CollectionModelMixin
public CollectionModelMixin()
-
-
Method Details
-
getContent
Description copied from class:CollectionModel
Returns the underlying elements.- Overrides:
getContent
in classCollectionModel<T>
- Returns:
- the content will never be null.
-