org.jminor.common.model
Class Version

java.lang.Object
  extended by org.jminor.common.model.Version
All Implemented Interfaces:
Serializable

public final class Version
extends Object
implements Serializable

A class specifying a version.

See Also:
Serialized Form

Constructor Summary
Version(String domain, String version)
          Instantiates a new Version object.
 
Method Summary
 String getDomain()
           
 String getVersion()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version(String domain,
               String version)
Instantiates a new Version object.

Parameters:
domain - the domain this version object should represent
version - the version string
Method Detail

getDomain

public String getDomain()
Returns:
the domain this version represents

getVersion

public String getVersion()
Returns:
the version string

toString

public String toString()

Overrides:
toString in class Object