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