![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantumldependency.common.constants.CommonConstants Maven / Gradle / Ivy
/*
CommonConstants.java
Creation date : 23/11/2009
Copyright © Benjamin Croizet ([email protected])
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
or GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received copies of the GNU General Public License
and GNU Lesser General Public License along with this program;
if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
http://www.fsf.org/licensing/licenses/gpl.html
http://www.gnu.org/licenses/lgpl.html
*/
package net.sourceforge.plantumldependency.common.constants;
import static java.lang.System.getProperty;
import static java.util.Arrays.asList;
import static java.util.Collections.unmodifiableSet;
import static java.util.logging.Level.CONFIG;
import static java.util.logging.Level.FINE;
import static java.util.logging.Level.FINER;
import static java.util.logging.Level.FINEST;
import static java.util.logging.Level.INFO;
import static java.util.logging.Level.SEVERE;
import static java.util.logging.Level.WARNING;
import static net.sourceforge.plantumldependency.common.constants.CharacterConstants.DOT_CHAR;
import java.io.File;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import net.sourceforge.plantumldependency.common.utils.date.UnmodifiableDate;
/**
* The class which stores all useful constants as Strings.
*
* @author Benjamin Croizet ( LOG_LEVELS_SET = unmodifiableSet(new HashSet < Level >(asList(new Level[] {
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST})));
/**
* The -1 code which is often used when returning a method (for error, or end of file for
* instance).
*/
public static final int MINUS_ONE_RETURN_CODE = -1;
/** The date which represents the current instant time (at the loading time). */
public static final Date NOW = new UnmodifiableDate();
/**
* Private constructor to prevent from instantiation.
*
* @since 1.3.0
*/
private CommonConstants() {
super();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy