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