blob: 31fe8a3927935a50497f7545c7e4d6b9f45baf3e [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.fineract.cn.individuallending.api.v1.events;
import java.util.Objects;
/**
* @author Myrle Krantz
*/
@SuppressWarnings({"unused", "WeakerAccess"})
public class IndividualLoanCommandEvent {
private String productIdentifier;
private String caseIdentifier;
private String forDate;
public IndividualLoanCommandEvent() {
}
public IndividualLoanCommandEvent(String productIdentifier, String caseIdentifier, String forDate) {
this.productIdentifier = productIdentifier;
this.caseIdentifier = caseIdentifier;
this.forDate = forDate;
}
public String getProductIdentifier() {
return productIdentifier;
}
public void setProductIdentifier(String productIdentifier) {
this.productIdentifier = productIdentifier;
}
public String getCaseIdentifier() {
return caseIdentifier;
}
public void setCaseIdentifier(String caseIdentifier) {
this.caseIdentifier = caseIdentifier;
}
public String getForDate() {
return forDate;
}
public void setForDate(String forDate) {
this.forDate = forDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IndividualLoanCommandEvent that = (IndividualLoanCommandEvent) o;
return Objects.equals(productIdentifier, that.productIdentifier) &&
Objects.equals(caseIdentifier, that.caseIdentifier) &&
Objects.equals(forDate, that.forDate);
}
@Override
public int hashCode() {
return Objects.hash(productIdentifier, caseIdentifier, forDate);
}
@Override
public String toString() {
return "IndividualLoanCommandEvent{" +
"productIdentifier='" + productIdentifier + '\'' +
", caseIdentifier='" + caseIdentifier + '\'' +
", forDate='" + forDate + '\'' +
'}';
}
}