Top Fields Constructors Methods
io.undertow.util

pack-priv Class SimpleAttachmentKey<T>

extends AttachmentKey<T>
Class Inheritance

Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final Class<T>

Constructor Summary

AccessConstructor and Description
pack-priv
SimpleAttachmentKey(final Class<T> valueClass)

Method Summary

Modifier and TypeMethod and Description
public T
cast(final Object
the value
value
)

Implements abstract io.undertow.util.AttachmentKey.cast.

Cast the value to the type of this attachment key.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from io.undertow.util.AttachmentKey:
createcreateList

Field Detail

valueClassback to summary
private final Class<T> valueClass

Constructor Detail

SimpleAttachmentKeyback to summary
pack-priv SimpleAttachmentKey(final Class<T> valueClass)

Method Detail

castback to summary
public T cast(final Object value)

Implements abstract io.undertow.util.AttachmentKey.cast.

Doc from io.undertow.util.AttachmentKey.cast.

Cast the value to the type of this attachment key.

Parameters
value:Object

the value

Returns:T

the cast value

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override