public class PackageLocation extends Object implements SortableLocation
Constructor and Description |
---|
PackageLocation(String packageName)
Creates a new PackageLocation with the supplied package name.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SortableLocation that)
Compares the string representations of this PackageLocation and the supplied SortableLocation.
|
boolean |
equals(Object obj) |
String |
getPackageName()
Retrieves the name of the package potentially holding JavaDoc.
|
String |
getPath()
Retrieves the path of this SortableLocation.
|
int |
hashCode() |
boolean |
isEqualToPath(String path)
Validates if the supplied path is equal to this SortableLocation.
|
String |
toString() |
public PackageLocation(String packageName)
packageName
- The name of the package potentially holding JavaDoc. Cannot be null
.public String getPackageName()
null
.public String getPath()
getPath
in interface SortableLocation
public boolean isEqualToPath(String path)
isEqualToPath
in interface SortableLocation
path
- The non-null path to compare to this SortableLocation.true
if this SortableLocation is equal to the supplied path.public int compareTo(SortableLocation that)
Compares the string representations of this PackageLocation and the supplied SortableLocation.
compareTo
in interface Comparable<SortableLocation>
Copyright © 2005–2015 MojoHaus. All rights reserved.