|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.argval.version.VersionNumberImpl
public class VersionNumberImpl
An implementation of VersionNumber.
| Constructor Summary | |
|---|---|
VersionNumberImpl(List<String> versionList)
Constructs a VersionNumber. |
|
| Method Summary | |
|---|---|
void |
accept(VersionNumberVisitor visitor)
The entry point for the visitor. |
boolean |
equals(Object obj)
|
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. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionNumberImpl(List<String> versionList)
null and at least
contain one element. No empty or null elements are expected.
versionList - - the List of String instances that build up the version number.
IllegalArgumentException - If argument is null, contains nulls, or is empty.| Method Detail |
|---|
public List<String> getPartitionedVersion()
VersionNumber
getPartitionedVersion in interface VersionNumberpublic void accept(VersionNumberVisitor visitor)
VersionNumberVisitorAcceptor
accept in interface VersionNumberVisitorAcceptorvisitor - - the version number visitorpublic String getAsText(String separator)
VersionNumberGiven the version number parts: [2, 2, 3, beta, 3] Will result in the text: '2.2.3.beta.3'
getAsText in interface VersionNumberseparator - - the separator, used between the different version number parts.
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||