智能客服
你问我答,随时在线为你解决问题

























| |---java.lang.Enum<Entry.Type> |---|---ohos.global.resource.Entry.Type public static enum Entry.Type extends Enum<Entry.Type> |
Modifier and Type | Method | Description |
|---|---|---|
static Entry.Type | Returns the enum constant of this type with the specified name. | |
static Entry.Type[] | values() | Returns an array containing the constants of this enum type, in the order they are declared. |
public static final Entry.Type FOLDER
Indicates the directory type.public static final Entry.Type FILE
Indicates the file type.public static final Entry.Type UNKNOWN
Indicates an unknown type.public static Entry.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Entry.Type c : Entry.Type.values())
System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
public static Entry.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)Parameters:
Parameter Name | Parameter Description |
|---|---|
name | the name of the enum constant to be returned. |
Returns:
the enum constant with the specified name
Throws:
Throw Name | Throw Description |
|---|---|
if this enum type has no constant with the specified name | |
if the argument is null |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功