Record Class ResolvableType.WildcardBounds
java.lang.Object
java.lang.Record
cn.taketoday.core.ResolvableType.WildcardBounds
- 封闭类:
- ResolvableType
static record ResolvableType.WildcardBounds(ResolvableType.WildcardBounds.Kind kind, ResolvableType[] bounds)
extends Record
Internal helper to handle bounds from
WildcardTypes.-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final ResolvableType[]bounds记录组件的字段。private final ResolvableType.WildcardBounds.Kindkind记录组件的字段。 -
构造器概要
构造器构造器说明WildcardBounds(ResolvableType.WildcardBounds.Kind kind, ResolvableType[] bounds) Internal constructor to create a newResolvableType.WildcardBoundsinstance. -
方法概要
修饰符和类型方法说明bounds()返回bounds记录组件的值。final boolean指示某个其他对象是否“等于”此对象。get(ResolvableType type) Get aResolvableType.WildcardBoundsinstance for the specified type, returningnullif the specified type cannot be resolved to aWildcardType.Return the underlying bounds.final inthashCode()返回此对象的哈希代码值。private booleanisAssignable(ResolvableType source, ResolvableType from) booleanisAssignableFrom(ResolvableType... types) Returntrueif this bounds is assignable to all the specified types.booleanReturntrueif this bounds is the same kind as the specified bounds.kind()返回kind记录组件的值。final StringtoString()返回此记录的字符串表示形式。
-
字段详细资料
-
kind
kind记录组件的字段。 -
bounds
bounds记录组件的字段。
-
-
构造器详细资料
-
WildcardBounds
WildcardBounds(ResolvableType.WildcardBounds.Kind kind, ResolvableType[] bounds) Internal constructor to create a newResolvableType.WildcardBoundsinstance.- 参数:
kind- the kind of boundsbounds- the bounds- 另请参阅:
-
-
方法详细资料
-
isSameKind
Returntrueif this bounds is the same kind as the specified bounds. -
isAssignableFrom
Returntrueif this bounds is assignable to all the specified types.- 参数:
types- the types to test against- 返回:
trueif this bounds is assignable to all types
-
isAssignable
-
getBounds
Return the underlying bounds. -
get
Get aResolvableType.WildcardBoundsinstance for the specified type, returningnullif the specified type cannot be resolved to aWildcardType.- 参数:
type- the source type- 返回:
- a
ResolvableType.WildcardBoundsinstance ornull
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
kind
返回kind记录组件的值。- 返回:
kind记录组件的值
-
bounds
返回bounds记录组件的值。- 返回:
bounds记录组件的值
-