⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constantvalues.java

📁 A Java web application, based on Struts and Hibernate, that serves as an online running log. Users m
💻 JAVA
字号:
/* @LICENSE_COPYRIGHT@ */package net.sf.irunninglog.util;import java.math.BigDecimal;/** * Constant values to be used within the application.  Any values that need to * be accessed as constants within the application should be placed in this * class. * * @author <a href="mailto:allan_e_lewis@yahoo.com">Allan Lewis</a> * @version $Revision: 1.1.1.1 $ $Date: 2005/06/23 01:49:03 $ * @since iRunningLog 1.0 */public final class ConstantValues {    /** Double with a value of '0.62'. */    private static final double KM_TO_MILES_CONVERSION = 0.62;    /** Integer with a value of '7'. */    public static final int INT_DAYS_IN_A_WEEK = 7;    /** String with a value of 'action'. */    public static final String STRING_ACTION = "action";    /** String with a blank value. */    public static final String STRING_BLANK = "";    /** String with a value of 'day'. */    public static final String STRING_DAY = "day";    /** String with a value of 'false'. */    public static final String STRING_FALSE = "false";    /** String with a value of 'Kilometers'. */    public static final String STRING_KILOMETERS = "Kilometers";    /** String with a value of 'km'. */    public static final String STRING_KILOMETERS_SHORT = "km";    /** String with a value of 'Miles'. */    public static final String STRING_MILES = "Miles";    /** String with a value of 'mi'. */    public static final String STRING_MILES_SHORT = "mi";    /** String with a value of 'month'. */    public static final String STRING_MONTH = "month";    /** String with a value of 'next'. */    public static final String STRING_NEXT = "next";    /** String with a value of 'No'. */    public static final String STRING_NO = "No";    /** String with a value of 'previous'. */    public static final String STRING_PREVIOUS = "previous";    /** String with a value of 'true'. */    public static final String STRING_TRUE = "true";    /** String with the value used to indicate that an object is unsaved. */    public static final String STRING_UNSAVED_VALUE = "TBG";    /** String with a value of 'year'. */    public static final String STRING_YEAR = "year";    /** String with a value of 'Yes'. */    public static final String STRING_YES = "Yes";    /** String with a value of '0.00'. */    public static final String STRING_ZERO = "0.00";    /** <code>BigDecimal</code> with a value of '0.00'. */    public static final BigDecimal BD_ZERO = new BigDecimal(STRING_ZERO);    /** <code>BigDecimal</code> with a value of '0.62'. */    public static final BigDecimal BD_KM_TO_MI =                                         new BigDecimal(KM_TO_MILES_CONVERSION);    /** This is a utility class - does not expose a constructor. */    private ConstantValues() {        super();    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -