package com.mzh.library.entity;

public class ReaderSearchCriteria {
    private String identifier;
    private String name;
    private String contact;
    private String statusCode;

    public ReaderSearchCriteria() {
    }

    public ReaderSearchCriteria(String identifier, String name, String contact, String statusCode) {
        this.identifier = trim(identifier);
        this.name = trim(name);
        this.contact = trim(contact);
        this.statusCode = trim(statusCode);
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = trim(identifier);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = trim(name);
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = trim(contact);
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = trim(statusCode);
    }

    private String trim(String value) {
        return value == null ? "" : value.trim();
    }
}
