In C# we have Type.FullName
and Type.Name
for getting the name of a type (class in this case) with or without the namespace (package in java-world).
What is the java equivalent to Type.Name
?
Clearly there must be a better way than using Class.getName()
and strip it of the package name manually.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…