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 javax.xml.bind.annotation.XmlTransient;
13 import io.swagger.annotations.ApiModel;
14 import io.swagger.annotations.ApiModelProperty;
16 @ApiModel(value = "Neighbour")
17 public class Neighbour {
19 @ApiModelProperty(required = false, hidden = true)
23 @ApiModelProperty(required = true,
25 value = "The neighbour name must refer to an existing node of the same graph")
32 public Neighbour(long id, String name) {
41 public void setId(long id) {
45 public String getName() {
49 public void setName(String name) {
54 public int hashCode() {
57 result = prime * result + ((name == null) ? 0 : name.hashCode());
62 public boolean equals(Object obj) {