org.esnm.server.data.jpa.service.EmailSearchCriteria.java Source code

Java tutorial

Introduction

Here is the source code for org.esnm.server.data.jpa.service.EmailSearchCriteria.java

Source

/*
 *
 * The contents of this file are subject to the Apache 2.0 license you may not 
 * use this file except in compliance with the License.
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 *
 *
 * Copyright 2014 ESN Manager project (http: *www.esn-manager.org).  
 * All rights reserved. Use is subject to license terms.
 *
 *
 *
 * Contributors list :
 *
 *    William Bonnet    wllmbnnt@gmail.com
 *
 */

package org.esnm.server.data.jpa.service;

import java.io.Serializable;

import org.springframework.util.Assert;

public class EmailSearchCriteria implements Serializable {

    private static final long serialVersionUID = 1L;

    private String address;

    public EmailSearchCriteria() {
    }

    public EmailSearchCriteria(String address) {
        Assert.notNull(address, "Address must not be null");
        this.address = address;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}