/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* Copyright (c) 2013, MPL CodeInside http://codeinside.ru
*/
package ru.codeinside.gws.api;
import java.io.Serializable;
final public class InfoSystem implements Serializable {
final public String code;
final public String name;
public InfoSystem(String code, String name) {
this.code = code;
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
InfoSystem that = (InfoSystem) o;
if (code != null ? !code.equals(that.code) : that.code != null) return false;
return true;
}
@Override
public int hashCode() {
return code != null ? code.hashCode() : 0;
}
@Override
public String toString() {
return "{code='" + code + "\', name='" + name + "\'}";
}
}