constants.java.svn-base
来自「這是一個JAVA語言寫的多代理人程式用來模擬飛機起飛或是降落的程式」· SVN-BASE 代码 · 共 53 行
SVN-BASE
53 行
/*Copyright (c) 2000-2003 Board of Trustees of Leland Stanford Jr. University,all rights reserved.Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALLSTANFORD UNIVERSITY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF ORIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Except as contained in this notice, the name of Stanford University shall notbe used in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from Stanford University.*/package base;//import java.util.*;/** * Constants of general use */public interface Constants { /** The number of milliseconds in a second */ public static final long SECOND = 1000; /** The number of milliseconds in a minute */ public static final long MINUTE = 60 * SECOND; /** The number of milliseconds in an hour */ public static final long HOUR = 60 * MINUTE; /** The number of milliseconds in a day */ public static final long DAY = 24 * HOUR; /** The number of milliseconds in a week */ public static final long WEEK = 7 * DAY; /** The line separator string on this system */ public static String EOL = System.getProperty("line.separator"); /** The default encoding used when none is detected */ public static String DEFAULT_ENCODING = "ISO-8859-1";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?