文档管理中心

Entry.Type

java.lang.Object

|---java.lang.Enum<Entry.Type>

|---|---ohos.global.resource.Entry.Type

public static enum Entry.Type
extends Enum<Entry.Type>
Indicates the entry type.

Enum Constant Summary

展开

Enum Constant

Description

FILE

Indicates the file type.

FOLDER

Indicates the directory type.

UNKNOWN

Indicates an unknown type.

Method Summary

展开

Modifier and Type

Method

Description

static Entry.Type

valueOf​(String name)

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.

展开

Methods inherited from class java.lang.Enum

clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

展开

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

FOLDER

public static final Entry.Type FOLDER

Indicates the directory type.

FILE

public static final Entry.Type FILE

Indicates the file type.

UNKNOWN

public static final Entry.Type UNKNOWN

Indicates an unknown type.

Method Detail

values

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

valueOf

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

IllegalArgumentException

if this enum type has no constant with the specified name

NullPointerException

if the argument is null

搜索
请输入您想要搜索的关键词