public enum Predicates extends Enum<Predicates>
| 限定符和类型 | 方法和说明 |
|---|---|
char |
code() |
String |
desc() |
boolean |
equals(boolean state) |
boolean |
equals(char val) |
boolean |
equals(int val) |
boolean |
equals(String str) |
static boolean |
no(boolean state) |
static boolean |
no(char code) |
static boolean |
no(int value) |
static boolean |
no(String code) |
static Predicates |
of(boolean state) |
static Predicates |
of(char code) |
static Predicates |
of(int value) |
static Predicates |
of(String code) |
boolean |
state() |
int |
value() |
static Predicates |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Predicates[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
static boolean |
yes(boolean state) |
static boolean |
yes(char code) |
static boolean |
yes(int value) |
static boolean |
yes(String code) |
public static final Predicates Y
public static final Predicates N
public static Predicates[] values()
for (Predicates c : Predicates.values()) System.out.println(c);
public static Predicates valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
public char code()
public String desc()
public boolean state()
public boolean equals(int val)
public boolean equals(String str)
public boolean equals(char val)
public boolean equals(boolean state)
public static boolean yes(int value)
public static boolean yes(String code)
public static boolean yes(char code)
public static boolean yes(boolean state)
public static boolean no(int value)
public static boolean no(String code)
public static boolean no(char code)
public static boolean no(boolean state)
public static Predicates of(int value)
public static Predicates of(String code)
public static Predicates of(char code)
public static Predicates of(boolean state)
Copyright © 2025. All rights reserved.