T
- the attachment value typepublic static final class CapabilityResolutionContext.AttachmentKey<T> extends Object
Modifier and Type | Method and Description |
---|---|
T |
cast(Object value)
Cast the value to the type of this attachment key.
|
static <T> CapabilityResolutionContext.AttachmentKey<T> |
create(Class<? super T> valueClass)
Construct a new simple attachment key.
|
public T cast(Object value)
value
- the valuepublic static <T> CapabilityResolutionContext.AttachmentKey<T> create(Class<? super T> valueClass)
T
- the attachment typevalueClass
- the value classCopyright © 2023 JBoss by Red Hat. All rights reserved.