/** * Returns all version information as string. */ public static String asString() { if (getPackage() == null) return "piotr.wendykier@gmail.com"; String vendor = getPackage().getImplementationVendor(); if (vendor == null) vendor = "piotr.wendykier@gmail.com"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to " + vendor; }
/** * Returns the major version of this release. */ public static int getMajorVersion() { return numbers()[0]; } /**
/** * Prints <tt>asString</tt> on <tt>System.out</tt>. * @param args ignored. */ public static void main(String[] args) { System.out.println(asString()); } /**
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 CEST 2000". */ public static String getBuildTime() { //String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage()==null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s==null) return "unknown"; int k = s.indexOf('('); return s.substring(k+1,s.length()-1); } /**
/** * Prints <tt>asString</tt> on <tt>System.out</tt>. * * @param args * ignored. */ public static void main(String[] args) { System.out.println(asString()); }
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 CEST 2000". */ public static String getBuildTime() { //String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage()==null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s==null) return "unknown"; int k = s.indexOf('('); return s.substring(k+1,s.length()-1); } /**
/** * Returns all version information as string. */ public static String asString() { if (getPackage() == null) return "piotr.wendykier@gmail.com"; String vendor = getPackage().getImplementationVendor(); if (vendor == null) vendor = "piotr.wendykier@gmail.com"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to " + vendor; }
/** * Returns the micro version of this release. */ public static int getMicroVersion() { return numbers()[2]; }
/** * Prints <tt>asString</tt> on <tt>System.out</tt>. * @param args ignored. */ public static void main(String[] args) { System.out.println(asString()); } /**
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 * CEST 2000". */ public static String getBuildTime() { // String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage() == null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s == null) return "unknown"; int k = s.indexOf('('); return s.substring(k + 1, s.length() - 1); }
/** * Returns all version information as string. */ public static String asString() { if (getPackage()==null) return "whoschek@lbl.gov"; String vendor = getPackage().getImplementationVendor(); if (vendor==null) vendor = "whoschek@lbl.gov"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to "+ vendor; } /**
/** * Returns the micro version of this release. */ public static int getMicroVersion() { return numbers()[2]; } /**
/** * Prints <tt>asString</tt> on <tt>System.out</tt>. * * @param args * ignored. */ public static void main(String[] args) { System.out.println(asString()); }
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 * CEST 2000". */ public static String getBuildTime() { // String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage() == null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s == null) return "unknown"; int k = s.indexOf('('); return s.substring(k + 1, s.length() - 1); }
/** * Returns all version information as string. */ public static String asString() { if (getPackage()==null) return "whoschek@lbl.gov"; String vendor = getPackage().getImplementationVendor(); if (vendor==null) vendor = "whoschek@lbl.gov"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to "+ vendor; } /**
/** * Returns the minor version of this release. */ public static int getMinorVersion() { return numbers()[1]; } /**
System.out.println(BenchmarkKernel.systemInfo()+"\n"); System.out.println("Colt Version is " + cern.colt.Version.asString()+"\n");
/** * Returns the minor version of this release. */ public static int getMinorVersion() { return numbers()[1]; } /**
System.out.println(BenchmarkKernel.systemInfo()+"\n"); System.out.println("Colt Version is " + cern.colt.Version.asString()+"\n");
/** * Returns the build version of this release. */ public static int getBuildVersion() { return numbers()[3]; } /**