Java Doc for Version.java in  » Development » Java-Plugin-Framework » org » java » plugin » registry » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » Java Plugin Framework » org.java.plugin.registry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.java.plugin.registry.Version

Version
final public class Version implements Serializable,Comparable<Version>(Code)
This class represents a plug-in version identifier.

version:
   $Id$


Field Summary
final public static  charSEPARATOR
     Version identifier parts separator.

Constructor Summary
public  Version(int aMajor, int aMinor, int aBuild, String aName)
     Creates version identifier object from given parts.

Method Summary
public  intcompareTo(Version obj)
    
public  booleanequals(Object obj)
    
public  intgetBuild()
    
public  intgetMajor()
    
public  intgetMinor()
    
public  StringgetName()
    
public  inthashCode()
    
public  booleanisCompatibleWith(Version other)
     Compares two version identifiers for compatibility.
public  booleanisEquivalentTo(Version other)
     Compares two version identifiers for equivalency.
public  booleanisGreaterOrEqualTo(Version other)
     Compares two version identifiers to see if this one is greater than or equal to the argument.
public  booleanisGreaterThan(Version other)
     Compares two version identifiers for order using multi-decimal comparison.
public static  Versionparse(String str)
     Parses given string as version identifier.
public  StringtoString()
     Returns the string representation of this version identifier.

Field Detail
SEPARATOR
final public static char SEPARATOR(Code)
Version identifier parts separator.




Constructor Detail
Version
public Version(int aMajor, int aMinor, int aBuild, String aName)(Code)
Creates version identifier object from given parts. No validation performed during object instantiation, all values become parts of version identifier as they are.
Parameters:
  aMajor - major version number
Parameters:
  aMinor - minor version number
Parameters:
  aBuild - build number
Parameters:
  aName - build name, null value becomes empty string




Method Detail
compareTo
public int compareTo(Version obj)(Code)

Parameters:
  obj - version to compare this instance with comparison result
See Also:   java.lang.Comparable.compareTo(java.lang.Object)



equals
public boolean equals(Object obj)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getBuild
public int getBuild()(Code)
build number



getMajor
public int getMajor()(Code)
major version number



getMinor
public int getMinor()(Code)
minor version number



getName
public String getName()(Code)
build name



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



isCompatibleWith
public boolean isCompatibleWith(Version other)(Code)
Compares two version identifiers for compatibility.

A version identifier is considered to be compatible if its major component equals to the argument major component, and its minor component is greater than or equal to the argument minor component. If the minor components are equal, than the build component of the version identifier must be greater than or equal to the build component of the argument identifier.


Parameters:
  other - the other version identifier true if this version identifieris compatible with the given version identifier, andfalse otherwise



isEquivalentTo
public boolean isEquivalentTo(Version other)(Code)
Compares two version identifiers for equivalency.

Two version identifiers are considered to be equivalent if their major and minor components equal and are at least at the same build level as the argument.


Parameters:
  other - the other version identifier true if this version identifieris equivalent to the given version identifier, andfalse otherwise



isGreaterOrEqualTo
public boolean isGreaterOrEqualTo(Version other)(Code)
Compares two version identifiers to see if this one is greater than or equal to the argument.

A version identifier is considered to be greater than or equal if its major component is greater than the argument major component, or the major components are equal and its minor component is greater than the argument minor component, or the major and minor components are equal and its build component is greater than the argument build component, or all components are equal.


Parameters:
  other - the other version identifier true if this version identifieris compatible with the given version identifier, andfalse otherwise



isGreaterThan
public boolean isGreaterThan(Version other)(Code)
Compares two version identifiers for order using multi-decimal comparison.
Parameters:
  other - the other version identifier true if this version identifieris greater than the given version identifier, andfalse otherwise



parse
public static Version parse(String str)(Code)
Parses given string as version identifier. All missing parts will be initialized to 0 or empty string. Parsing starts from left side of the string.
Parameters:
  str - version identifier as string version identifier object



toString
public String toString()(Code)
Returns the string representation of this version identifier. The result satisfies version.equals(new Version(version.toString())). the string representation of this version identifier



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.