edu.mayo.bsi.ngsportal.shared
Class VersionedString

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.shared.VersionedString
All Implemented Interfaces:
Comparable<VersionedString>

public class VersionedString
extends Object
implements Comparable<VersionedString>

Class that stores a double with a string, normally a name with its version

Author:
Gregory Dougherty


Constructor Summary
VersionedString(String name, double version)
           
 
Method Summary
 int compareTo(VersionedString other)
           
 boolean equals(Object obj)
           
 String getName()
           
 double getVersion()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionedString

public VersionedString(String name,
                       double version)
Parameters:
name -
version -
Method Detail

getName

public final String getName()
Returns:
the name

getVersion

public final double getVersion()
Returns:
the version

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(VersionedString other)
Specified by:
compareTo in interface Comparable<VersionedString>

toString

public String toString()
Overrides:
toString in class Object