diff --git a/src/main/java/org/springframework/hateoas/Links.java b/src/main/java/org/springframework/hateoas/Links.java index ec957f43..fc2874ff 100644 --- a/src/main/java/org/springframework/hateoas/Links.java +++ b/src/main/java/org/springframework/hateoas/Links.java @@ -29,7 +29,7 @@ import org.springframework.util.StringUtils; /** * Value object to represent a list of {@link Link}s. - * + * * @author Oliver Gierke * @author Greg Turnquist */ @@ -43,7 +43,7 @@ public class Links implements Iterable { /** * Creates a new {@link Links} instance from the given {@link Link}s. - * + * * @param links */ public Links(List links) { @@ -52,7 +52,7 @@ public class Links implements Iterable { /** * Creates a new {@link Links} instance from the given {@link Link}s. - * + * * @param links */ public Links(Link... links) { @@ -61,7 +61,7 @@ public class Links implements Iterable { /** * Returns the {@link Link} with the given rel. - * + * * @param rel the relation type to lookup a link for. * @return the link with the given rel or {@literal Optional#empty()} if none found. */ @@ -84,9 +84,10 @@ public class Links implements Iterable { return getLink(rel) // .orElseThrow(() -> new IllegalArgumentException(String.format("Couldn't find link with rel '%s'!", rel))); } + /** * Returns all {@link Links} with the given relation type. - * + * * @return the links */ public List getLinks(String rel) { @@ -97,7 +98,7 @@ public class Links implements Iterable { /** * Returns whether the {@link Links} container contains a {@link Link} with the given rel. - * + * * @param rel * @return */ @@ -107,7 +108,7 @@ public class Links implements Iterable { /** * Creates a {@link Links} instance from the given RFC5988-compatible link format. - * + * * @param source a comma separated list of {@link Link} representations. * @return the {@link Links} represented by the given {@link String}. */ @@ -134,7 +135,7 @@ public class Links implements Iterable { /** * Returns whether the {@link Links} container is empty. - * + * * @return */ public boolean isEmpty() { @@ -150,7 +151,7 @@ public class Links implements Iterable { return StringUtils.collectionToCommaDelimitedString(links); } - /* + /* * (non-Javadoc) * @see java.lang.Iterable#iterator() */ @@ -159,7 +160,7 @@ public class Links implements Iterable { return links.iterator(); } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -175,7 +176,7 @@ public class Links implements Iterable { return this.links.equals(that.links); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/src/test/java/org/springframework/hateoas/LinksUnitTest.java b/src/test/java/org/springframework/hateoas/LinksUnitTest.java index 66a8bb0e..26e926cd 100755 --- a/src/test/java/org/springframework/hateoas/LinksUnitTest.java +++ b/src/test/java/org/springframework/hateoas/LinksUnitTest.java @@ -25,7 +25,7 @@ import org.springframework.util.StringUtils; /** * Unit test for {@link Links}. - * + * * @author Oliver Gierke * @author Greg Turnquist */