@Immutable public final class BinaryName extends java.lang.Object
A$B
and a class called A
that has an inner class
B
.Constructor and Description |
---|
BinaryName(java.lang.String pPkg,
java.util.Collection<java.lang.String> pClsNames)
Constructor.
|
BinaryName(java.lang.String pPkg,
java.lang.String pOuterCls,
java.lang.String... pInnerCls)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object pOther) |
java.lang.String |
getInnerSimpleName()
Getter.
|
java.lang.String |
getOuterFqcn()
The fully qualified name of the outer class.
|
java.lang.String |
getOuterSimpleName()
Getter.
|
java.lang.String |
getPackage() |
int |
hashCode() |
java.lang.String |
toString() |
public BinaryName(@Nullable java.lang.String pPkg, @Nonnull java.util.Collection<java.lang.String> pClsNames)
pPkg
- package namepClsNames
- class simple names in descending order of their nestingpublic boolean equals(java.lang.Object pOther)
equals
in class java.lang.Object
public java.lang.String getInnerSimpleName()
null
if this binary name
does not represent an inner class@CheckForNull public java.lang.String getOuterFqcn()
null
if the simple name of the outer class is unknownpublic java.lang.String getOuterSimpleName()
public java.lang.String getPackage()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object