org.jboss.tattletale.core
Class Location

java.lang.Object
  extended by org.jboss.tattletale.core.Location
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Location
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Location

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
Location(java.lang.String filename, java.lang.String version)
          Constructor
 
Method Summary
 int compareTo(java.lang.Object o)
          Comparable
 boolean equals(java.lang.Object obj)
          Equals
 java.lang.String getFilename()
          Get the filename
 java.lang.String getVersion()
          Get the version
 int hashCode()
          Hash code
 java.lang.String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location(java.lang.String filename,
                java.lang.String version)
Constructor

Parameters:
filename - The filename
version - The version
Method Detail

getFilename

public java.lang.String getFilename()
Get the filename

Returns:
The value

getVersion

public java.lang.String getVersion()
Get the version

Returns:
The value

compareTo

public int compareTo(java.lang.Object o)
Comparable

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - The other object
Returns:
The compareTo value

equals

public boolean equals(java.lang.Object obj)
Equals

Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object
Returns:
True if equals; otherwise false

hashCode

public int hashCode()
Hash code

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code

toString

public java.lang.String toString()
String representation

Overrides:
toString in class java.lang.Object
Returns:
The string


Copyright ? 2009 JBoss (http://www.jboss.com/)