Package org.apache.wicket.util.lang
Class PackageName
- java.lang.Object
-
- org.apache.wicket.util.lang.PackageName
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class PackageName extends Object implements IClusterable
A type-safe package name class since Package is unreliable (it's not a Package object, but rather a sometimes-available holder for versioning information).- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object that)
static PackageName
forClass(Class<?> c)
static PackageName
forPackage(Package p)
String
getName()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
forClass
public static PackageName forClass(Class<?> c)
- Parameters:
c
- The class to get a PackageName object for- Returns:
- The PackageName object
-
forPackage
public static PackageName forPackage(Package p)
- Parameters:
p
- The package to get a PackageName object for- Returns:
- The package name
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-