Enum EntityQuery.Kind
- All Implemented Interfaces:
Comparable<EntityQuery.Kind>
- Enclosing class:
EntityQuery
The three lookups an entity type can offer.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionstatic T byId(String id)-- resolve one instance from itsEntityId.static List<T> matching(String query)-- free-text lookup as the user types or speaks.static List<T> suggested()-- the instances offered when the user is asked to choose. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityQuery.KindReturns the enum constant of this type with the specified name.static EntityQuery.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
BY_ID
static T byId(String id)-- resolve one instance from itsEntityId. Mandatory for every entity type, because an entity crosses the platform boundary as its id and nothing else. -
SUGGESTED
static List<T> suggested()-- the instances offered when the user is asked to choose. This is what fills the platform's picker, so return the handful a person would plausibly want, not the whole table. -
SEARCH
static List<T> matching(String query)-- free-text lookup as the user types or speaks. Without it, a user can only pick fromSUGGESTED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-