Package ai.extend.types
Class Enum.Builder
- java.lang.Object
-
- ai.extend.types.Enum.Builder
-
- All Implemented Interfaces:
Enum._FinalStage,Enum.DescriptionStage,Enum.ValueStage
- Enclosing class:
- Enum
public static final class Enum.Builder extends java.lang.Object implements Enum.ValueStage, Enum.DescriptionStage, Enum._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumbuild()Enum._FinalStagedescription(java.lang.String description)Description of what this enum value represents.Enum.Builderfrom(Enum other)Enum.DescriptionStagevalue(java.lang.String value)The value of the enum option.
-
-
-
Method Detail
-
from
public Enum.Builder from(Enum other)
- Specified by:
fromin interfaceEnum.ValueStage
-
value
public Enum.DescriptionStage value(@NotNull java.lang.String value)
The value of the enum option.
The value of the enum option.
- Specified by:
valuein interfaceEnum.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public Enum._FinalStage description(@NotNull java.lang.String description)
Description of what this enum value represents.
Description of what this enum value represents.
- Specified by:
descriptionin interfaceEnum.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Enum build()
- Specified by:
buildin interfaceEnum._FinalStage
-
-