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 *******************************************************************************/
9 package it.polito.verigraph.model;
11 import io.swagger.annotations.ApiModel;
12 import io.swagger.annotations.ApiModelProperty;
14 @ApiModel(value = "Link")
16 @ApiModelProperty(required = false, hidden = true)
18 @ApiModelProperty(required = false, hidden = true)
21 public String getLink() {
25 public void setLink(String link) {
29 public String getRel() {
33 public void setRel(String rel) {
38 public int hashCode() {
41 result = prime * result + ((link == null) ? 0 : link.hashCode());
42 result = prime * result + ((rel == null) ? 0 : rel.hashCode());
47 public boolean equals(Object obj) {
52 if (getClass() != obj.getClass())
54 Link other = (Link) obj;
56 if (other.link != null)
59 else if (!link.equals(other.link))
62 if (other.rel != null)
65 else if (!rel.equals(other.rel))