public enum ClientInfoStatus extends Enum<ClientInfoStatus>
Connection.setClientInfo
原因状态枚举
Enum Constant and Description |
---|
REASON_UNKNOWN
客户端信息属性不能设置为一些未知的原因
|
REASON_UNKNOWN_PROPERTY
指定的客户端信息属性名称不是一个公认的属性名称。
|
REASON_VALUE_INVALID
为客户信息属性指定的值无效。
|
REASON_VALUE_TRUNCATED
为客户信息属性指定的值太大。
|
Modifier and Type | Method and Description |
---|---|
static ClientInfoStatus |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static ClientInfoStatus[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final ClientInfoStatus REASON_UNKNOWN
public static final ClientInfoStatus REASON_UNKNOWN_PROPERTY
public static final ClientInfoStatus REASON_VALUE_INVALID
public static final ClientInfoStatus REASON_VALUE_TRUNCATED
public static ClientInfoStatus[] values()
对于(clientinfostatus C:clientinfostatus。values()) 系统,println(C);
public static ClientInfoStatus valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.