/**
 * 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/.
 */
package org.mifosplatform.portfolio.collectionsheet.data;

import java.util.Collection;

import org.mifosplatform.infrastructure.core.data.EnumOptionData;

/**
 * Immutable data object for clients with loans due for disbursement or collection.
 */
public class JLGClientData {

    private final Long clientId;
    private final String clientName;
    private Collection<LoanDueData> loans;
    private final EnumOptionData attendanceType;

    public JLGClientData(final Long clientId, final String clientName, final Collection<LoanDueData> loans, final EnumOptionData attendanceType) {
        this.clientId = clientId;
        this.clientName = clientName;
        this.loans = loans;
        this.attendanceType = attendanceType;
    }

    public JLGClientData(final Long clientId, final String clientName, final EnumOptionData attendanceType) {
        this.clientId = clientId;
        this.clientName = clientName;
        this.loans = null;
        this.attendanceType = attendanceType;
    }

    public Long getClientId() {
        return this.clientId;
    }

    public String getClientName() {
        return this.clientName;
    }

    public Collection<LoanDueData> getLoans() {
        return this.loans;
    }

    public void setLoans(final Collection<LoanDueData> loans) {
        this.loans = loans;
    }

}
@@ -590,24 +590,56 @@
 ata%3E loans;%0A
+    @SuppressWarnings(%22unused%22)%0A
     private 
@@ -1562,10 +1562,9 @@
 ;%0A    %7D%0A
-%0A
 %7D

add suppress warning to Data object.