net.sourceforge.argval.version
Interface VersionNumber

All Superinterfaces:
VersionNumberVisitorAcceptor
All Known Implementing Classes:
VersionNumberImpl

public interface VersionNumber
extends VersionNumberVisitorAcceptor

The interface VersionNumber, represents a (software package) version. Where number is not strictly a number. Just a list of parts, as like many version (numbers) which are split up by a dot. The VersionNumber instance can contain any String, so also version number parts like 'alpha', 'beta', 'pre-release', or similar.

Author:
T. Verhagen

Method Summary
 String getAsText(String separator)
          Returns the version number as text, using the separator, for separation of the different version number parts.
 List<String> getPartitionedVersion()
          A list of strings, which form together the version number.
 
Methods inherited from interface net.sourceforge.argval.version.VersionNumberVisitorAcceptor
accept
 

Method Detail

getPartitionedVersion

List<String> getPartitionedVersion()
A list of strings, which form together the version number.

Returns:
The list of strings.

getAsText

String getAsText(String separator)
Returns the version number as text, using the separator, for separation of the different version number parts. Example:
 Given the version number parts: [2, 2, 3, beta, 3]
 Will result in the text: '2.2.3.beta.3'
 

Parameters:
separator - - the separator, used between the different version number parts.
Returns:
The version number as text.


Copyright © 2013 Verhagen Software. All Rights Reserved.