All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dominicsayers.isemail.GeneralState Maven / Gradle / Ivy

package com.dominicsayers.isemail;

/**
 * This enumeration divides between the main parts of verbose information.
 * 
 * @package isemail
 * @author Daniel Marschall [www.daniel-marschall.de]
 * @copyright 2010 by Daniel Marschall
 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
 * @see http://www.dominicsayers.com/isemail
 * @version 2010-10-08
 */

public enum GeneralState {

	OK(true), // Original: 0
	WARNING(true), // Original: 64..74
	ERROR(false) // Original: 128..152
	// ,UNEXPECTED(false) // Original: 190..191
	;

	boolean isValid;

	/**
	 * Determinates if the email address is valid or not. Warnings get ignored.
	 * 
	 * @return true if the general state is either OK or WARNING.
* false on ERROR. */ public boolean isValid() { return this.isValid; } private GeneralState(boolean isValid) { this.isValid = isValid; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy