Java Doc for Version.java in  » Profiler » JMeasurement » de » mcs » utils » 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 » Profiler » JMeasurement » de.mcs.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.mcs.utils.Version

Version
public class Version (Code)
this is a littel class to help versioning. Version could be build from a string with the following syntax: major.minor.release.build
author:
   w.klaas



Constructor Summary
public  Version()
     constructor for empty version.
public  Version(String version)
     Constructor for creating a version object from an string.
public  Version(Version version)
     constructor from another version class.

Method Summary
final public  voiddecrementBuild()
     decrement the build field.
final public  voiddecrementMajor()
     decrement the major field.
final public  voiddecrementMinor()
     decrement the minor field.
final public  voiddecrementRelease()
     decrement the release field.
final public  booleanequals(Object arg0)
    
final public  intgetBuild()
     getting the build field.
final public  intgetMajor()
     getting the major field.
final public  intgetMinor()
     getting the minor field.
final public  intgetRelease()
     getting the release field.
final public  booleangreaterThan(Version dest)
    
final public  inthashCode()
     getting the hashcode.
final public  voidincrementBuild()
     increment the build field.
final public  voidincrementMajor()
     increment the major field.
final public  voidincrementMinor()
     increment the minor field.
final public  voidincrementRelease()
     incementing one the release field.
final public  booleanlesserThan(Version dest)
    
public static  voidmain(String[] args)
     Main methode for testing purpose only.
final public  voidparseString(String version)
     parsing a string into this version class.
final public  voidsetBuild(int aBuild)
    
final public  voidsetMajor(int aMajor)
    
final public  voidsetMinor(int aMinor)
    
final public  voidsetRelease(int aRelease)
    
final public  StringtoString()
     converting this version to an version string.


Constructor Detail
Version
public Version()(Code)
constructor for empty version.



Version
public Version(String version)(Code)
Constructor for creating a version object from an string.
Parameters:
  version - string to convert



Version
public Version(Version version)(Code)
constructor from another version class.
Parameters:
  version - version to use




Method Detail
decrementBuild
final public void decrementBuild()(Code)
decrement the build field.



decrementMajor
final public void decrementMajor()(Code)
decrement the major field.



decrementMinor
final public void decrementMinor()(Code)
decrement the minor field.



decrementRelease
final public void decrementRelease()(Code)
decrement the release field.



equals
final public boolean equals(Object arg0)(Code)
is this version equal to the destination version?
Parameters:
  arg0 - destination version true if this version is eqaul than the destinationversion, else false



getBuild
final public int getBuild()(Code)
getting the build field. int



getMajor
final public int getMajor()(Code)
getting the major field. int



getMinor
final public int getMinor()(Code)
getting the minor field. int



getRelease
final public int getRelease()(Code)
getting the release field. int



greaterThan
final public boolean greaterThan(Version dest)(Code)
is this version geater than the destination version?
Parameters:
  dest - destination version true if this version is greater than thedestination version, else false



hashCode
final public int hashCode()(Code)
getting the hashcode. int



incrementBuild
final public void incrementBuild()(Code)
increment the build field.



incrementMajor
final public void incrementMajor()(Code)
increment the major field.



incrementMinor
final public void incrementMinor()(Code)
increment the minor field.



incrementRelease
final public void incrementRelease()(Code)
incementing one the release field.



lesserThan
final public boolean lesserThan(Version dest)(Code)
is this version lesser than the destination version?
Parameters:
  dest - destination version true if this version is lesser than thedestination version, else false



main
public static void main(String[] args)(Code)
Main methode for testing purpose only.
Parameters:
  args - commandline arguments



parseString
final public void parseString(String version)(Code)
parsing a string into this version class.
Parameters:
  version - string to parse



setBuild
final public void setBuild(int aBuild)(Code)

Parameters:
  aBuild - setting the build number.



setMajor
final public void setMajor(int aMajor)(Code)

Parameters:
  aMajor - setting the major number.



setMinor
final public void setMinor(int aMinor)(Code)

Parameters:
  aMinor - setting the minor number.



setRelease
final public void setRelease(int aRelease)(Code)

Parameters:
  aRelease - setting the release number.



toString
final public String toString()(Code)
converting this version to an version string. String



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.