Enum Class BindingKind
- All Implemented Interfaces:
Serializable, Comparable<BindingKind>, Constable
Classifies how a
Binding produces its value.
Used by BindingNode to describe the binding's kind for the Track 2 binding graph.
- Since:
- Apr-2026
- Author:
- reed.vonredwitz
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BindingKindReturns the enum constant of this class with the specified name.static BindingKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALUE
A pre-built value is returned directly (e.g.bind(MyClass.class).to(instance)). -
CLASS
An instance of a concrete class is created and injected on demand. -
SUPPLIER
ASupplierproduces the value. -
MULTI
A multibinding set — produced byBinder.bindSet(Class).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-