Java Doc for Version.java in  » ERP-CRM-Financial » sakai » org » apache » commons » jrcs » rcs » 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 » ERP CRM Financial » sakai » org.apache.commons.jrcs.rcs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jrcs.util.ToString
      org.apache.commons.jrcs.rcs.Version

Version
public class Version extends ToString implements Cloneable,Comparable(Code)
Contains and manages a version number of the form "x(\.y)*". This class is NOT thread safe.
See Also:   Archive
author:
   Juanco Anez
version:
   $Id: Version.java 2967 2005-10-26 10:52:33Z ian@caret.cam.ac.uk $



Constructor Summary
public  Version(int major)
    
public  Version(int major, int minor)
     Creates a new Version with a major.minor version number.
public  Version(Integer[] num)
     Converts an array of Integer to a Version.
public  Version(int[] num)
     Converts an array of int to a Version.
public  Version(String v)
     Converts string to a version.
public  Version(Version v)
     Create a new Version by copying another.
public  Version()
     Create an empty version number.

Method Summary
protected  void__addBranch(Integer branch)
    
protected  void__addBranch(int branch)
    
public  intat(int pos)
     Return the version number at the given position.
Parameters:
  pos - the position.
public  Objectclone()
    
public  intcompareTo(Object other)
     Compares two versions in lexigographical order. Unlike compareVersions, this comparison is not done in the way usual for versions numbers.
public  intcompareVersions(Version ver)
     Compares two versions. The comparison is done the usual way, i.e., 2.0 is greter than 1.99.1, and 0.1.2 is greater than 0.1
Parameters:
  ver - the version to compare to.
public  booleanequals(Object o)
     Determine if two versions are equal.
public  booleaneven(int n)
    
public  booleaneven()
    
public  VersiongetBase(int positions)
     Return the last number in the version number.
public  VersiongetBranchPoint()
    
public  int[]getNumbers()
     Return the current version number as an array of int.
public  inthashCode()
    
public  booleanisBranch()
    
public  booleanisGhost()
    
public  booleanisGreaterOrEqualThan(Version ver)
     Determine if this version is greater than or equal to the given one.
Parameters:
  ver - the version to compare to.
public  booleanisGreaterThan(Version ver)
     Determine if this version is greater than the given one.
Parameters:
  ver - the version to compare to.
public  booleanisLessOrEqualThan(Version ver)
     Determine if this version is less than or equal to the given one.
Parameters:
  ver - the version to compare to.
public  booleanisLessThan(Version ver)
     Determine if this version is less than the given one.
Parameters:
  ver - the version to compare to.
public  booleanisRevision()
    
public  booleanisTrunk()
    
public  intlast()
     Return the last number in the version number.
public  VersionnewBranch(int branch)
    
public  Versionnext()
    
public  booleanodd(int n)
    
public  booleanodd()
    
public  intsize()
    
public  voidtoString(StringBuffer s)
    


Constructor Detail
Version
public Version(int major)(Code)
Creates a new Version with a single digit version number
Parameters:
  major - the version number



Version
public Version(int major, int minor)(Code)
Creates a new Version with a major.minor version number.
Parameters:
  major - the major version number
Parameters:
  major - the minor version number



Version
public Version(Integer[] num)(Code)
Converts an array of Integer to a Version.
Parameters:
  num - an array of Integers



Version
public Version(int[] num)(Code)
Converts an array of int to a Version.
Parameters:
  num - an array of int



Version
public Version(String v) throws InvalidVersionNumberException(Code)
Converts string to a version.
Parameters:
  v - a string accepted by the following regular expression.[0-9]+(.[0-9]+)*
throws:
  InvalidVersionNumberException - if the string cannot be parsed



Version
public Version(Version v)(Code)
Create a new Version by copying another.
Parameters:
  v - the version to copy



Version
public Version()(Code)
Create an empty version number.




Method Detail
__addBranch
protected void __addBranch(Integer branch)(Code)



__addBranch
protected void __addBranch(int branch)(Code)



at
public int at(int pos)(Code)
Return the version number at the given position.
Parameters:
  pos - the position. the number.



clone
public Object clone()(Code)



compareTo
public int compareTo(Object other)(Code)
Compares two versions in lexigographical order. Unlike compareVersions, this comparison is not done in the way usual for versions numbers. The order relationship stablished here is the one CVS used to store nodes into archive files.
Parameters:
  other - The version to compare to
See Also:   Version.compareVersions



compareVersions
public int compareVersions(Version ver)(Code)
Compares two versions. The comparison is done the usual way, i.e., 2.0 is greter than 1.99.1, and 0.1.2 is greater than 0.1
Parameters:
  ver - the version to compare to. 0 if this == ver, 1 if this greater than ver, -1 otherwise.



equals
public boolean equals(Object o)(Code)
Determine if two versions are equal.
Parameters:
  o - the version to compare to true if both versions represent the same version number



even
public boolean even(int n)(Code)



even
public boolean even()(Code)



getBase
public Version getBase(int positions)(Code)
Return the last number in the version number. the number.



getBranchPoint
public Version getBranchPoint()(Code)



getNumbers
public int[] getNumbers()(Code)
Return the current version number as an array of int. the current version number as an array of int.



hashCode
public int hashCode()(Code)



isBranch
public boolean isBranch()(Code)



isGhost
public boolean isGhost()(Code)



isGreaterOrEqualThan
public boolean isGreaterOrEqualThan(Version ver)(Code)
Determine if this version is greater than or equal to the given one.
Parameters:
  ver - the version to compare to. true if compareVersions(ver) >= 0
See Also:   Version.compareVersions



isGreaterThan
public boolean isGreaterThan(Version ver)(Code)
Determine if this version is greater than the given one.
Parameters:
  ver - the version to compare to. true if compareVersions(ver) > 0
See Also:   Version.compareVersions



isLessOrEqualThan
public boolean isLessOrEqualThan(Version ver)(Code)
Determine if this version is less than or equal to the given one.
Parameters:
  ver - the version to compare to. true if compareVersions(ver) <= 0
See Also:   Version.compareVersions



isLessThan
public boolean isLessThan(Version ver)(Code)
Determine if this version is less than the given one.
Parameters:
  ver - the version to compare to. true if compareVersions(ver) < 0
See Also:   Version.compareVersions



isRevision
public boolean isRevision()(Code)



isTrunk
public boolean isTrunk()(Code)



last
public int last()(Code)
Return the last number in the version number. the number.



newBranch
public Version newBranch(int branch)(Code)



next
public Version next()(Code)



odd
public boolean odd(int n)(Code)



odd
public boolean odd()(Code)



size
public int size()(Code)



toString
public void toString(StringBuffer s)(Code)



Methods inherited from org.apache.commons.jrcs.util.ToString
public static String arrayToString(Object[] o)(Code)(Java Doc)
public static String arrayToString(Object[] o, String EOL)(Code)(Java Doc)
public static String[] stringToArray(String value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void toString(StringBuffer s)(Code)(Java Doc)

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.