public interface LinkRelation
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isSameAs(LinkRelation relation)
Returns whether the given
LinkRelation is logically the same as the current one, independent of
implementation, i.e. whether the plain String values match. |
static Iterable<LinkRelation> |
manyOf(String... others)
|
default LinkRelation |
map(Function<String,String> mapper)
Returns a new
LinkRelation with its relation mapped by the given function, unless it is an IANA one. |
static LinkRelation |
of(String relation)
Creates a new
LinkRelation. |
String |
value()
Return the link relation's value.
|
String value()
static LinkRelation of(String relation)
LinkRelation.relation - must not be null or empty.static Iterable<LinkRelation> manyOf(String... others)
others - must not be null.default boolean isSameAs(LinkRelation relation)
LinkRelation is logically the same as the current one, independent of
implementation, i.e. whether the plain String values match.relation - must not be null.default LinkRelation map(Function<String,String> mapper)
LinkRelation with its relation mapped by the given function, unless it is an IANA one.
Implementors are encouraged to override this method to redeclare the return type to be itself.mapper - must not be null.IanaLinkRelationsCopyright © 2011–2021 Pivotal, Inc.. All rights reserved.