blob: 4576d73938ff7ec6e59564ecd484435484db6173 [file] [log] [blame]
/*
* Copyright 2017 The Mifos Initiative.
*
* 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 io.mifos.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 + '\'' +
'}';
}
}