Package org.springframework.hateoas
Class Affordance
java.lang.Object
org.springframework.hateoas.Affordance
- All Implemented Interfaces:
Iterable<AffordanceModel>
Hold the
AffordanceModel
s for all supported media types.- Author:
- Greg Turnquist, Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
<T extends AffordanceModel>
TgetAffordanceModel
(MediaType mediaType) Look up theAffordanceModel
for the requestedMediaType
.int
hashCode()
iterator()
toString()
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
-
Affordance
-
-
Method Details
-
getAffordanceModel
Look up theAffordanceModel
for the requestedMediaType
.- Parameters:
mediaType
-- Returns:
-
iterator
- Specified by:
iterator
in interfaceIterable<AffordanceModel>
-
equals
-
hashCode
public int hashCode() -
toString
-