Class ResourceDescription
java.lang.Object
org.apache.creadur.whisker.app.analysis.ResourceDescription
- All Implemented Interfaces:
Comparable<ResourceDescription>
Describes a resource in a software distribution.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceDescription(String directoryName, String resourceName) Constructs a description of the given resource. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ResourceDescription other) Natural comparison is directory name, then resource name.booleanEqual means identical name and directory.final StringGets the name of the containing directory.final StringGets the resource name.inthashCode()Hash code compatible with equals.toString()Suitable for logging.
-
Constructor Details
-
ResourceDescription
-
-
Method Details
-
getDirectory
Gets the name of the containing directory.- Returns:
- the directoryName, not null
-
getResource
-
hashCode
-
equals
-
toString
-
compareTo
Natural comparison is directory name, then resource name.- Specified by:
compareToin interfaceComparable<ResourceDescription>- Parameters:
other- possibly null- Returns:
- numeric comparison
- See Also:
-