Class Bindable<T>
java.lang.Object
org.springframework.boot.context.properties.bind.Bindable<T>
- Type Parameters:
T- the source type
Source that can be bound by a
Binder.- Since:
- 2.0.0
- Author:
- Phillip Webb, Madhura Bhave
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRestrictions that can be applied when binding values. -
Method Summary
Modifier and TypeMethodDescriptionboolean<A extends Annotation>
AgetAnnotation(Class<A> type) Return a single associated annotations that could affect binding.Return any associated annotations that could affect binding.Returns themethodto be used to bind this bindable, ornullif no specific binding method is required.Return the boxed type of the item to bind.getType()Return the type of the item to bind.getValue()Return a supplier that provides the object value ornull.booleanhasBindRestriction(Bindable.BindRestriction bindRestriction) Returnstrueif the specified bind restriction has been added.inthashCode()static <T> Bindable<T>Create a newBindableof the specified type.static <T> Bindable<T>of(ResolvableType type) Create a newBindableof the specified type.static <T> Bindable<T>ofInstance(T instance) Create a newBindableof the type of the specified instance with an existing value equal to the instance.