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)
|
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.Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.