Bindable

class Bindable<T>

Source that can be bound by a Binder.

Author

Phillip Webb

Madhura Bhave

Since

2.0.0

Parameters

<T>

the source type

See also

Types

Link copied to clipboard
Restrictions that can be applied when binding values.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun <A : Annotation?> getAnnotation(type: Class<A>): A
Return a single associated annotations that could affect binding.
Link copied to clipboard
Returns true if the specified bind restriction has been added.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun <E> listOf(elementType: Class<E>): Bindable<List<E>>
Create a new BindableList of the specified element type.
Link copied to clipboard
open fun <K, V> mapOf(keyType: Class<K>, valueType: Class<V>): Bindable<Map<K, V>>
Create a new BindableMap of the specified key and value type.
Link copied to clipboard
open fun <T> of(type: Class<T>): Bindable<T>
open fun <T> of(type: ResolvableType): Bindable<T>
Create a new Bindable of the specified type.
Link copied to clipboard
open fun <T> ofInstance(instance: T): Bindable<T>
Create a new Bindable of the type of the specified instance with an existing value equal to the instance.
Link copied to clipboard
open fun <E> setOf(elementType: Class<E>): Bindable<Set<E>>
Create a new BindableSet of the specified element type.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun withAnnotations(annotations: Array<Annotation>): Bindable<T>
Create an updated Bindable instance with the specified annotations.
Link copied to clipboard
open fun withBindMethod(bindMethod: BindMethod): Bindable<T>
Create an updated Bindable instance with a specific bind method.
Link copied to clipboard
open fun withBindRestrictions(additionalRestrictions: Array<Bindable.BindRestriction>): Bindable<T>
Create an updated Bindable instance with additional bind restrictions.
Link copied to clipboard
open fun withExistingValue(existingValue: T): Bindable<T>
Create an updated Bindable instance with an existing value.
Link copied to clipboard
open fun withSuppliedValue(suppliedValue: Supplier<T>): Bindable<T>
Create an updated Bindable instance with a value supplier.