1 /*******************************************************************************
2 * Copyright (c) 2017 Politecnico di Torino and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Apache License, Version 2.0
6 * which accompanies this distribution, and is available at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *******************************************************************************/
10 package it.polito.escape.verify.model;
12 import io.swagger.annotations.ApiModel;
13 import io.swagger.annotations.ApiModelProperty;
15 @ApiModel(value = "Link")
17 @ApiModelProperty(required = false, hidden = true)
19 @ApiModelProperty(required = false, hidden = true)
22 public String getLink() {
26 public void setLink(String link) {
30 public String getRel() {
34 public void setRel(String rel) {
39 public int hashCode() {
42 result = prime * result + ((link == null) ? 0 : link.hashCode());
43 result = prime * result + ((rel == null) ? 0 : rel.hashCode());
48 public boolean equals(Object obj) {
53 if (getClass() != obj.getClass())
55 Link other = (Link) obj;
57 if (other.link != null)
60 else if (!link.equals(other.link))
63 if (other.rel != null)
66 else if (!rel.equals(other.rel))