jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
org.jau.util.VersionNumberString Class Reference

VersionNumber specialization, holding the versionString this instance is derived from. More...

Inheritance diagram for org.jau.util.VersionNumberString:
Collaboration diagram for org.jau.util.VersionNumberString:

Public Member Functions

 VersionNumberString (final int majorRev, final int minorRev, final int subMinorRev, final String versionString)
 See VersionNumber#VersionNumber(int, int, int). More...
 
 VersionNumberString (final String versionString)
 See VersionNumber#VersionNumber(String). More...
 
 VersionNumberString (final String versionString, final String delim)
 See VersionNumber#VersionNumber(String, String). More...
 
 VersionNumberString (final String versionString, final java.util.regex.Pattern versionPattern)
 See VersionNumber#VersionNumber(String, java.util.regex.Pattern). More...
 
final String getVersionString ()
 Returns the version string this version number is derived from. More...
 
String toString ()
 
- Public Member Functions inherited from org.jau.util.VersionNumber
 VersionNumber (final int majorRev, final int minorRev, final int subMinorRev)
 Explicit version number instantiation, with all components defined explicitly. More...
 
 VersionNumber (final String versionString)
 String derived version number instantiation. More...
 
 VersionNumber (final String versionString, final String delim)
 String derived version number instantiation. More...
 
 VersionNumber (final String versionString, final java.util.regex.Pattern versionPattern)
 String derived version number instantiation. More...
 
final boolean isZero ()
 Returns true, if all version components are zero, otherwise false. More...
 
final boolean hasMajor ()
 Returns true, if the major component is defined explicitly, otherwise false. More...
 
final boolean hasMinor ()
 Returns true, if the optional minor component is defined explicitly, otherwise false. More...
 
final boolean hasSub ()
 Returns true, if the optional sub component is defined explicitly, otherwise false. More...
 
final int endOfStringMatch ()
 If constructed with version-string, returns the string offset after the last matching character, or 0 if none matched, or -1 if not constructed with a string. More...
 
final int hashCode ()
 
final boolean equals (final Object o)
 
final int compareTo (final Object o)
 
final int compareTo (final VersionNumber vo)
 
final int getMajor ()
 
final int getMinor ()
 
final int getSub ()
 
String toString ()
 

Static Public Attributes

static final VersionNumberString zeroVersion = new VersionNumberString(0, 0, 0, -1, (short)0, "n/a")
 A zero version instance, w/o any component defined explicitly. More...
 
- Static Public Attributes inherited from org.jau.util.VersionNumber
static final VersionNumber zeroVersion = new VersionNumber(0, 0, 0, -1, (short)0)
 A zero version instance, w/o any component defined explicitly. More...
 

Protected Member Functions

 VersionNumberString (final int majorRev, final int minorRev, final int subMinorRev, final int strEnd, final short _state, final String versionString)
 
- Protected Member Functions inherited from org.jau.util.VersionNumber
 VersionNumber (final int majorRev, final int minorRev, final int subMinorRev, final int _strEnd, final short _state)
 

Protected Attributes

final String strVal
 
- Protected Attributes inherited from org.jau.util.VersionNumber
final int major
 
final int minor
 
final int sub
 
final int strEnd
 
final short state
 

Additional Inherited Members

- Static Public Member Functions inherited from org.jau.util.VersionNumber
static java.util.regex.Pattern getVersionNumberPattern (final String delim)
 Returns the pattern with Perl regular expression: More...
 
static java.util.regex.Pattern getDefaultVersionNumberPattern ()
 Returns the default pattern using getVersionNumberPattern(String) with delimiter "<b>.</b>". More...
 
- Static Protected Attributes inherited from org.jau.util.VersionNumber
static final short HAS_MAJOR = 1 << 0
 
static final short HAS_MINOR = 1 << 1
 
static final short HAS_SUB = 1 << 2
 

Detailed Description

VersionNumber specialization, holding the versionString this instance is derived from.

Definition at line 33 of file VersionNumberString.java.

Constructor & Destructor Documentation

◆ VersionNumberString() [1/5]

org.jau.util.VersionNumberString.VersionNumberString ( final int  majorRev,
final int  minorRev,
final int  subMinorRev,
final int  strEnd,
final short  _state,
final String  versionString 
)
protected

Definition at line 45 of file VersionNumberString.java.

◆ VersionNumberString() [2/5]

org.jau.util.VersionNumberString.VersionNumberString ( final int  majorRev,
final int  minorRev,
final int  subMinorRev,
final String  versionString 
)

◆ VersionNumberString() [3/5]

org.jau.util.VersionNumberString.VersionNumberString ( final String  versionString)

◆ VersionNumberString() [4/5]

org.jau.util.VersionNumberString.VersionNumberString ( final String  versionString,
final String  delim 
)

◆ VersionNumberString() [5/5]

org.jau.util.VersionNumberString.VersionNumberString ( final String  versionString,
final java.util.regex.Pattern  versionPattern 
)

Member Function Documentation

◆ getVersionString()

final String org.jau.util.VersionNumberString.getVersionString ( )

Returns the version string this version number is derived from.

Definition at line 82 of file VersionNumberString.java.

◆ toString()

String org.jau.util.VersionNumberString.toString ( )

Reimplemented from org.jau.util.VersionNumber.

Definition at line 85 of file VersionNumberString.java.

Member Data Documentation

◆ strVal

final String org.jau.util.VersionNumberString.strVal
protected

Definition at line 43 of file VersionNumberString.java.

◆ zeroVersion

final VersionNumberString org.jau.util.VersionNumberString.zeroVersion = new VersionNumberString(0, 0, 0, -1, (short)0, "n/a")
static

A zero version instance, w/o any component defined explicitly.

See also
hasMajor()
hasMinor()
hasSub()

Definition at line 41 of file VersionNumberString.java.


The documentation for this class was generated from the following file: