Package com.axelor.db
Interface ValueEnum<T>
- All Known Implementing Classes:
AiAgentAudience,AiChatConversationMode,AiChatParticipantRole,AiConfigApplyMode,AiKnowledgeSourceStatus,AiKnowledgeSourceType,AiMcpAuthType,AiMcpServerStatus,AiMessageRole,AiModelType,AiProviderType,AiServiceTier,AiToolHttpMethod,AiToolType,AiUsageSource,AiUsageStatus,AuditEventType,AuthenticationStatus,MetaExportConfigType,MFAMethod,PanelMailDisplay,StudioBuildStatus,StudioResourceStatus,StudioResourceType,ViewCustomizationPermission,WorkflowBranchStatus,WorkflowCaptureStatus,WorkflowCommentMode,WorkflowJoinDecision,WorkflowJoinWait,WorkflowMessageExpect,WorkflowMessageStatus,WorkflowNodeRunStatus,WorkflowParkOwner,WorkflowRunStatus,WorkflowSplitStatus,WorkflowStateKind,WorkflowStateStatus,WorkflowTaskOutcome,WorkflowTaskStatus,WorkflowTrigger
public interface ValueEnum<T>
Enum type fields with custom values should implement this interface.
-
Method Summary
-
Method Details
-
getValue
T getValue()Get the value.- Returns:
- custom value associated with this enum constant.
-
of
Get the constant of the specified enum type with the specified value.- Type Parameters:
T- the enum type whose constant is to be returned- Parameters:
enumType- theClassobject of the enum type from which to return a constantvalue- the value of the constant to return- Returns:
- the enum constant of the specified enum type with the specified value
- Throws:
NullPointerException- if the specified value is nullIllegalArgumentException- if specified enumType is not an enum or no constant found for the specified value
-