Serializable
, Comparable<FileExtension>
public enum FileExtension extends Enum<FileExtension>
Modifier and Type | Method | Description |
---|---|---|
boolean |
isExentionOf(String path) |
|
boolean |
isExentionOf(Path path) |
|
static FileExtension |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static FileExtension[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileExtension MARKDOWN
public static final FileExtension XML
public static final FileExtension XHTML
public static FileExtension[] values()
for (FileExtension c : FileExtension.values()) System.out.println(c);
public static FileExtension valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isExentionOf(String path)
public boolean isExentionOf(Path path)
Copyright © 2022. All rights reserved.