Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java equivalent of .NET's Version class?

Is there a Java equivalent of .NET's System.Version class? How do I say this in Java?

Version myVersion = new Version(2, 1);
like image 623
Jason Crease Avatar asked Mar 27 '12 14:03

Jason Crease


People also ask

What is .NET equivalent in Java?

NET platforms. Java has its own virtual machine, the Java Virtual Machine (JVM) which is similar to . NET CLR. Java's execution engine (the JVM) and a Java compiler with a set of libraries constitute the Java Platform.

What is the equivalent of Java?

C# "is" operator alternative in Java [duplicate]

What is .NET equivalent?

Net Equivalent Value means, for a given Neighbors stock option or warrant, the product of (A) the Merger Consideration per Share minus the option or warrant's exercise price per share and (B) the number of shares of Neighbors Common Stock underlying such option or warrant.


1 Answers

Here's a class from OSGi: http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Version.html

And the corresponding source: http://www.docjar.com/html/api/org/osgi/framework/Version.java.html

like image 183
Rob Stoecklein Avatar answered Sep 19 '22 17:09

Rob Stoecklein