Package org.springframework.hateoas
Class Affordance
java.lang.Object
org.springframework.hateoas.Affordance
- All Implemented Interfaces:
Iterable<AffordanceModel>
Hold the
AffordanceModels for all supported media types.- Author:
- Greg Turnquist, Oliver Gierke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<T extends AffordanceModel>
TgetAffordanceModel(MediaType mediaType) Look up theAffordanceModelfor the requestedMediaType.inthashCode()iterator()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Affordance
-
-
Method Details
-
getAffordanceModel
Look up theAffordanceModelfor the requestedMediaType.- Parameters:
mediaType-- Returns:
-
iterator
- Specified by:
iteratorin interfaceIterable<AffordanceModel>
-
equals
-
hashCode
public int hashCode() -
toString
-