public enum BlackOrWhite extends Enum<BlackOrWhite>
Is it a blacklist or whitelist?.
aliteralmind __DASH__ github __AT__ yahoo __DOT__ com), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. http://codelet.aliteralmind.com, https://github.com/aliteralmind/codeletFilenameBlackWhiteList| Modifier and Type | Method and Description |
|---|---|
static BlackOrWhite |
getBlackIfTrue(boolean flag)
Return
BlackOrWhite.BLACK if the flag is true, or WHITE if false. |
boolean |
isBlack()
Is this
BlackOrWhite equal to BLACK?. |
boolean |
isWhite()
Is this
BlackOrWhite equal to WHITE?. |
static BlackOrWhite |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlackOrWhite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlackOrWhite BLACK
YYY.
public static final BlackOrWhite WHITE
YYY.
public static BlackOrWhite[] values()
for (BlackOrWhite c : BlackOrWhite.values()) System.out.println(c);
public static BlackOrWhite 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 final boolean isBlack()
Is this BlackOrWhite equal to BLACK?.
public final boolean isWhite()
Is this BlackOrWhite equal to WHITE?.
public static final BlackOrWhite getBlackIfTrue(boolean flag)
Return BlackOrWhite.BLACK if the flag is true, or WHITE if false.
Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet