version.java
来自「JGRoups源码」· Java 代码 · 共 50 行
JAVA
50 行
package org.jgroups;/** * Holds version information for JGroups. */public class Version { public static final String description="2.4.0"; public static final short version=240; public static final String cvs="$Id: Version.java,v 1.42 2006/10/31 12:45:32 belaban Exp $"; /** * Prints the value of the description and cvs fields to System.out. * @param args */ public static void main(String[] args) { System.out.println("\nVersion: \t" + description); System.out.println("CVS: \t\t" + cvs); System.out.println("History: \t(see doc/history.txt for details)\n"); } /** * Returns the catenation of the description and cvs fields. * @return String with description */ public static String printDescription() { return "JGroups " + description + " [" + cvs + "]"; } /** * Returns the version field as a String. * @return String with version */ public static String printVersion() { return Short.toString(version); } /** * Compares the specified version number against the current version number. * @param v short * @return Result of == operator. */ public static boolean compareTo(short v) { return version == v; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?