public class Type extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Type(String packageName,
String className)
Creates a new type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getClassName() |
String |
getPackageName() |
int |
hashCode() |
static Type |
of(String qualifiedClassName)
Returns a type for the specified fully qualified class name.
|
static Type |
of(String packageName,
String className)
Returns a type for the specified package and class name.
|
String |
toString() |
public static Type of(String packageName, String className)
packageName - the name of the package containing the type (dotted)className - the name of the type's class (dotted)public static Type of(String qualifiedClassName)
qualifiedClassName - the fully qualified name of the type's class (dotted)public String getPackageName()
public String getClassName()
This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.