@@ -244,7 +244,7 @@ public Link andAffordances(List<Affordance> affordances) {
244
244
* Creats a new {@link Link} with the given {@link Affordance}s.
245
245
*
246
246
* @param affordances must not be {@literal null}.
247
- * @return
247
+ * @return will never be {@literal null}.
248
248
*/
249
249
public Link withAffordances (List <Affordance > affordances ) {
250
250
@@ -321,7 +321,7 @@ public Link expand(Map<String, ?> arguments) {
321
321
* Creates a new {@link Link} with the same href but given {@link LinkRelation}.
322
322
*
323
323
* @param relation must not be {@literal null}.
324
- * @return
324
+ * @return will never be {@literal null}.
325
325
*/
326
326
public Link withRel (LinkRelation relation ) {
327
327
@@ -334,7 +334,7 @@ public Link withRel(LinkRelation relation) {
334
334
* Creates a new {@link Link} with the same href but given {@link LinkRelation}.
335
335
*
336
336
* @param relation must not be {@literal null} or empty.
337
- * @return
337
+ * @return will never be {@literal null}.
338
338
*/
339
339
public Link withRel (String relation ) {
340
340
return withRel (LinkRelation .of (relation ));
@@ -460,8 +460,8 @@ private static Map<String, String> getAttributeMap(String source) {
460
460
/**
461
461
* Create a new {@link Link} by copying all attributes and applying the new {@literal href}.
462
462
*
463
- * @param href
464
- * @return
463
+ * @param href can be {@literal null}
464
+ * @return will never be {@literal null}.
465
465
*/
466
466
public Link withHref (String href ) {
467
467
@@ -473,8 +473,8 @@ public Link withHref(String href) {
473
473
/**
474
474
* Create a new {@link Link} by copying all attributes and applying the new {@literal hrefleng}.
475
475
*
476
- * @param hreflang
477
- * @return
476
+ * @param hreflang can be {@literal null}
477
+ * @return will never be {@literal null}.
478
478
*/
479
479
public Link withHreflang (@ Nullable String hreflang ) {
480
480
@@ -486,8 +486,8 @@ public Link withHreflang(@Nullable String hreflang) {
486
486
/**
487
487
* Create a new {@link Link} by copying all attributes and applying the new {@literal media}.
488
488
*
489
- * @param media
490
- * @return
489
+ * @param media can be {@literal null}
490
+ * @return will never be {@literal null}.
491
491
*/
492
492
public Link withMedia (@ Nullable String media ) {
493
493
@@ -499,8 +499,8 @@ public Link withMedia(@Nullable String media) {
499
499
/**
500
500
* Create a new {@link Link} by copying all attributes and applying the new {@literal title}.
501
501
*
502
- * @param title
503
- * @return
502
+ * @param title can be {@literal null}
503
+ * @return will never be {@literal null}.
504
504
*/
505
505
public Link withTitle (@ Nullable String title ) {
506
506
@@ -512,8 +512,8 @@ public Link withTitle(@Nullable String title) {
512
512
/**
513
513
* Create a new {@link Link} by copying all attributes and applying the new {@literal type}.
514
514
*
515
- * @param type
516
- * @return
515
+ * @param type can be {@literal null}
516
+ * @return will never be {@literal null}.
517
517
*/
518
518
public Link withType (@ Nullable String type ) {
519
519
@@ -525,8 +525,8 @@ public Link withType(@Nullable String type) {
525
525
/**
526
526
* Create a new {@link Link} by copying all attributes and applying the new {@literal deprecation}.
527
527
*
528
- * @param deprecation
529
- * @return
528
+ * @param deprecation can be {@literal null}
529
+ * @return will never be {@literal null}.
530
530
*/
531
531
public Link withDeprecation (@ Nullable String deprecation ) {
532
532
@@ -538,8 +538,8 @@ public Link withDeprecation(@Nullable String deprecation) {
538
538
/**
539
539
* Create a new {@link Link} by copying all attributes and applying the new {@literal profile}.
540
540
*
541
- * @param profile
542
- * @return
541
+ * @param profile can be {@literal null}
542
+ * @return will never be {@literal null}.
543
543
*/
544
544
public Link withProfile (@ Nullable String profile ) {
545
545
@@ -551,8 +551,8 @@ public Link withProfile(@Nullable String profile) {
551
551
/**
552
552
* Create a new {@link Link} by copying all attributes and applying the new {@literal name}.
553
553
*
554
- * @param name
555
- * @return
554
+ * @param name can be {@literal null}
555
+ * @return will never be {@literal null}.
556
556
*/
557
557
public Link withName (@ Nullable String name ) {
558
558
0 commit comments