#842 - Remove Identifiable.

This commit is contained in:
Oliver Drotbohm
2019-02-28 23:58:42 +01:00
parent 3077211db2
commit 23c0a34c66
11 changed files with 9 additions and 439 deletions

View File

@@ -23,7 +23,6 @@ import java.util.stream.Collectors;
import org.springframework.util.Assert;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@@ -33,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @author Johhny Lim
* @author Greg Turnquist
*/
public class RepresentationModel<T extends RepresentationModel<? extends T>> implements Identifiable<Link> {
public class RepresentationModel<T extends RepresentationModel<? extends T>> {
private final List<Link> links;
@@ -57,14 +56,6 @@ public class RepresentationModel<T extends RepresentationModel<? extends T>> imp
this.links.addAll(initialLinks);
}
/**
* Returns the {@link Link} with a rel of {@link IanaLinkRelations#SELF}.
*/
@JsonIgnore
public Optional<Link> getId() {
return getLink(IanaLinkRelations.SELF);
}
/**
* Adds the given link to the resource.
*