public static class GenericsType.GenericsTypeName
extends Object
Represents the name of a GenericsType for use as a map key or in generic type comparisons. This inner class provides value-based equality and hashing for generic type name matching.
TODO: In order to distinguish GenericsType with same name, we should add a property to keep the declaring class.
| Constructor and description |
|---|
GenericsTypeName(String name)Creates a generics type name with the specified string. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
equals(Object that)Compares this GenericsTypeName with another object for equality based on the type name. |
|
public String |
getName()Returns the generic type name. |
|
public int |
hashCode()Returns the hash code based on the type name. |
|
public String |
toString()Returns the string representation of this generics type name. |
Creates a generics type name with the specified string.
name - the generic type name (never null)Compares this GenericsTypeName with another object for equality based on the type name.
that - the object to compare withReturns the generic type name.
Returns the hash code based on the type name.
Returns the string representation of this generics type name.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.