T - 可通过此AttributeKey访问的Attribute的类型。
public final class AttributeKey<T> extends AbstractConstant<AttributeKey<T>>
AttributeMap中的Attribute的密钥 。
请注意,不可能有多个具有相同名称的密钥。
| Modifier and Type | Method and Description |
|---|---|
static boolean |
exists(java.lang.String name)
如果给定的name存在 true则返回name 。
|
static <T> AttributeKey<T> |
newInstance(java.lang.String name)
创建一个新 AttributeKey对于给定name或失败,并IllegalArgumentException如果AttributeKey对于给定name存在。
|
static <T> AttributeKey<T> |
valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent) |
static <T> AttributeKey<T> |
valueOf(java.lang.String name)
返回具有指定 name的AttributeKey的单例实例。
|
public static <T> AttributeKey<T> valueOf(java.lang.String name)
name的AttributeKey的单例实例。
public static boolean exists(java.lang.String name)
true则返回name 。
public static <T> AttributeKey<T> newInstance(java.lang.String name)
AttributeKey对于给定name或失败,并IllegalArgumentException如果AttributeKey对于给定name存在。
public static <T> AttributeKey<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)
Copyright © 2008–2018 The Netty Project. All rights reserved.