Java Doc for Version.java in  » GIS » GeoTools-2.4.1 » org » geotools » util » 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 » GIS » GeoTools 2.4.1 » org.geotools.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.util.Version

Version
public class Version implements CharSequence,Comparable,Serializable(Code)
Holds a version number. Versions are often of the form . . , but are not required to. For example an EPSG database version is "6.11.2" . The separator character is the dot.

This class provides convenience methods for fetching the major, minor and reversion numbers, and for performing comparaisons.
since:
   2.4
version:
   $Id: Version.java 25193 2007-04-18 13:37:38Z desruisseaux $
author:
   Martin Desruisseaux
See Also:   org.geotools.factory.GeoTools.getVersion



Field Summary
final public static  charSEPARATOR
     The separator character between , and components.

Constructor Summary
public  Version(String version)
     Creates a new version object from the supplied string.

Method Summary
public  charcharAt(int index)
     Returns the char value at the specified index.
public  intcompareTo(Version other, int limit)
     Compares this version with an other version object, up to the specified limit.
public  intcompareTo(Object other)
     Compares this version with an other version object.
public  booleanequals(Object other)
     Compare this version string with the specified object for equality.
public synchronized  ComparablegetComponent(int index)
     Returns the specified components of this version string.
public  ComparablegetMajor()
     Returns the major version number.
public  ComparablegetMinor()
     Returns the minor version number.
public  ComparablegetRevision()
     Returns the revision number.
public  inthashCode()
     Returns a hash code value for this version.
public  intlength()
     Returns the length of the version string.
public  CharSequencesubSequence(int start, int end)
     Returns a new version string that is a subsequence of this sequence.
public  StringtoString()
     Returns the version string.

Field Detail
SEPARATOR
final public static char SEPARATOR(Code)
The separator character between , and components.




Constructor Detail
Version
public Version(String version)(Code)
Creates a new version object from the supplied string.




Method Detail
charAt
public char charAt(int index)(Code)
Returns the char value at the specified index.



compareTo
public int compareTo(Version other, int limit)(Code)
Compares this version with an other version object, up to the specified limit. A limit of 1 compares only the version number. A limit of 2 compares the major and version numbers, etc. The comparaisons are performed as Integer object if possible, or as String otherwise.
Parameters:
  other - The other version object to compare with.
Parameters:
  limit - The maximum number of components to compare. A negative value if this version is lower than the supplied version, a positivevalue if it is higher, or 0 if they are equal.



compareTo
public int compareTo(Object other)(Code)
Compares this version with an other version object. This method performs the same comparaison than Version.compareTo(Version,int) with no limit.
Parameters:
  other - The other version object to compare with. A negative value if this version is lower than the supplied version, a positivevalue if it is higher, or 0 if they are equal.



equals
public boolean equals(Object other)(Code)
Compare this version string with the specified object for equality. Two version are considered equal if (other) == 0.



getComponent
public synchronized Comparable getComponent(int index)(Code)
Returns the specified components of this version string. For a version of the major.minor.revision form, index 0 stands for the major version number, 1 stands for the minor version number and 2 stands for the revision number.

The return value is an Integer if the component is parsable as an integer, or a String otherwise. If there is no component at the specified index, then this method returns null .
Parameters:
  index - The index of the component to fetch. The value at the specified index, or null if none.
throws:
  IndexOutOfBoundsException - if index is negative.




getMajor
public Comparable getMajor()(Code)
Returns the major version number. This method returns an Integer if possible, or a String otherwise.



getMinor
public Comparable getMinor()(Code)
Returns the minor version number. This method returns an Integer if possible, or a String otherwise. If there is no minor version number, then this method returns null .



getRevision
public Comparable getRevision()(Code)
Returns the revision number. This method returns an Integer if possible, or a String otherwise. If there is no revision number, then this method returns null .



hashCode
public int hashCode()(Code)
Returns a hash code value for this version.



length
public int length()(Code)
Returns the length of the version string.



subSequence
public CharSequence subSequence(int start, int end)(Code)
Returns a new version string that is a subsequence of this sequence.



toString
public String toString()(Code)
Returns the version string. This is the string specified at construction time.



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.