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 javax.xml.bind.annotation.XmlTransient;
14 import io.swagger.annotations.ApiModel;
15 import io.swagger.annotations.ApiModelProperty;
17 @ApiModel(value = "Neighbour")
18 public class Neighbour {
20 @ApiModelProperty(required = false, hidden = true)
24 @ApiModelProperty( required = true,
26 value = "The neighbour name must refer to an existing node of the same graph")
33 public Neighbour(long id, String name) {
42 public void setId(long id) {
46 public String getName() {
50 public void setName(String name) {
55 public int hashCode() {
58 result = prime * result + ((name == null) ? 0 : name.hashCode());
63 public boolean equals(Object obj) {