Package io.netty.util

Class AttributeKey<T>

    • Method Detail

      • valueOf

        public static <T> AttributeKey<T> valueOf​(java.lang.String name)
        Returns the singleton instance of the AttributeKey which has the specified name.
      • exists

        public static boolean exists​(java.lang.String name)
        Returns true if a AttributeKey exists for the given name.
      • newInstance

        public static <T> AttributeKey<T> newInstance​(java.lang.String name)
        Creates a new AttributeKey for the given name or fail with an IllegalArgumentException if a AttributeKey for the given name exists.
      • valueOf

        public static <T> AttributeKey<T> valueOf​(java.lang.Class<?> firstNameComponent,
                                                  java.lang.String secondNameComponent)