@Test public void testValueOf() { String name = "test1"; assertFalse(ChannelOption.exists(name)); ChannelOption<String> option = ChannelOption.valueOf(name); ChannelOption<String> option2 = ChannelOption.valueOf(name); assertSame(option, option2); }
@SuppressWarnings("unchecked") public static <T> ChannelOption<T> valueOf(String name) { return (ChannelOption<T>) pool.valueOf(name); }
ChannelOption extends AbstractConstant<ChannelOption<T>> { @SuppressWarnings("unchecked") public static <T> ChannelOption<T> valueOf(String name) { return (ChannelOption<T>) pool.valueOf(name); } }
ChannelOption extends AbstractConstant<ChannelOption<T>> { @SuppressWarnings("unchecked") public static <T> ChannelOption<T> valueOf(String name) { return (ChannelOption<T>) pool.valueOf(name); } private  ChannelOption(int id, String name); @Deprecated protected  ChannelOption(String name); }
ChannelOption extends AbstractConstant<ChannelOption<T>> { @SuppressWarnings("unchecked") public static <T> ChannelOption<T> valueOf(String name) { return (ChannelOption<T>) pool.valueOf(name); } private  ChannelOption(int id, String name); @Deprecated protected  ChannelOption(String name); @SuppressWarnings("unchecked") static ChannelOption<T> valueOf(String name); @SuppressWarnings("unchecked") static ChannelOption<T> valueOf(Class<?> firstNameComponent, String secondNameComponent); static boolean exists(String name); @SuppressWarnings("unchecked") static ChannelOption<T> newInstance(String name); void validate(T value); }
ChannelOption extends AbstractConstant<ChannelOption<T>> { @SuppressWarnings("unchecked") public static <T> ChannelOption<T> valueOf(String name) { return (ChannelOption<T>) pool.valueOf(name); } private  ChannelOption(int id, String name); @Deprecated protected  ChannelOption(String name); @SuppressWarnings("unchecked") static ChannelOption<T> valueOf(String name); @SuppressWarnings("unchecked") static ChannelOption<T> valueOf(Class<?> firstNameComponent, String secondNameComponent); static boolean exists(String name); @SuppressWarnings("unchecked") static ChannelOption<T> newInstance(String name); void validate(T value); static final ChannelOption<ByteBufAllocator> ALLOCATOR; static final ChannelOption<RecvByteBufAllocator> RCVBUF_ALLOCATOR; static final ChannelOption<MessageSizeEstimator> MESSAGE_SIZE_ESTIMATOR; static final ChannelOption<Integer> CONNECT_TIMEOUT_MILLIS; @Deprecated
    static final ChannelOption<Integer> MAX_MESSAGES_PER_READ; static final ChannelOption<Integer> WRITE_SPIN_COUNT; @Deprecated
    static final ChannelOption<Integer> WRITE_BUFFER_HIGH_WATER_MARK; @Deprecated
    static final ChannelOption<Integer> WRITE_BUFFER_LOW_WATER_MARK; static final ChannelOption<WriteBufferWaterMark> WRITE_BUFFER_WATER_MARK; static final ChannelOption<Boolean> ALLOW_HALF_CLOSURE; static final ChannelOption<Boolean> AUTO_READ; static final ChannelOption<Boolean> AUTO_CLOSE; static final ChannelOption<Boolean> SO_BROADCAST; static final ChannelOption<Boolean> SO_KEEPALIVE; static final ChannelOption<Integer> SO_SNDBUF; static final ChannelOption<Integer> SO_RCVBUF; static final ChannelOption<Boolean> SO_REUSEADDR; static final ChannelOption<Integer> SO_LINGER; static final ChannelOption<Integer> SO_BACKLOG; static final ChannelOption<Integer> SO_TIMEOUT; static final ChannelOption<Integer> IP_TOS; static final ChannelOption<InetAddress> IP_MULTICAST_ADDR; static final ChannelOption<NetworkInterface> IP_MULTICAST_IF; static final ChannelOption<Integer> IP_MULTICAST_TTL; static final ChannelOption<Boolean> IP_MULTICAST_LOOP_DISABLED; static final ChannelOption<Boolean> TCP_NODELAY; @Deprecated
    static final ChannelOption<Boolean> DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION; static final ChannelOption<Boolean> SINGLE_EVENTEXECUTOR_PER_GROUP; }