/* * Constellation - An open source and standard compliant SDI * http://www.constellation-sdi.org * * Copyright 2014 Geomatys. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.constellation.process; import java.io.Serializable; import java.util.Objects; /** * * @author Guilhem Legal (Geomatys) */ public class UserProcessReference implements Serializable { private int id; private String identifier; /** * @return the id */ public int getId() { return id; } /** * @param id the id to set */ public void setId(int id) { this.id = id; } /** * @return the identifier */ public String getIdentifier() { return identifier; } /** * @param identifier the identifier to set */ public void setIdentifier(String identifier) { this.identifier = identifier; } @Override public boolean equals(Object o) { if (this == o) return true; if (o instanceof UserProcessReference) { final UserProcessReference that = (UserProcessReference) o; return Objects.equals(this.id, that.id) && Objects.equals(this.identifier, that.identifier); } return false; } @Override public int hashCode() { int result = id; result = 31 * result + identifier.hashCode(); return result; } @Override public String toString() { final StringBuilder sb = new StringBuilder("UserProcessReference{"); sb.append("id=").append(id); sb.append(", identifier='").append(identifier).append('\''); sb.append('}'); return sb.toString(); } }