public enum ScannerPatternFormat extends Enum<ScannerPatternFormat>
FileScanner
.Enum Constant and Description |
---|
ANT
The Ant patterns format.
|
REGEX
The regular expressions format.
|
Modifier and Type | Method and Description |
---|---|
static ScannerPatternFormat |
toPattern(String name)
Returns a scanner pattern format by name (case insensitive).
|
static ScannerPatternFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScannerPatternFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScannerPatternFormat ANT
public static final ScannerPatternFormat REGEX
public static ScannerPatternFormat[] values()
for (ScannerPatternFormat c : ScannerPatternFormat.values()) System.out.println(c);
public static ScannerPatternFormat 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 static ScannerPatternFormat toPattern(String name)
name
- the scanner pattern format name.IllegalArgumentException
- if cannot find search pattern format related with name.Copyright © 2015–2016 gabrys.biz. All rights reserved.