Optional<String>.
Although OptionalBinders may be injected through a variety of types V, Optional<V>, Optional<Provider<V>>, etc..), an OptionalBinderBinding exists only on the
Binding associated with the Optional<V> key. Injectable types can be discovered using
getKey (which will return the Optional<V> key), orgetAlternateKeys
(which will return the other keys that can inject this data). Other bindings can be validated to
be derived from this OptionalBinderBinding using containsElement.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsElement(Element element)
Returns true if this OptionalBinder contains the given Element in order to build the optional binding or uses the given Element in order to support building and injecting its data. |
| public Binding | |
| public Set | |
| public Binding | getDefaultBinding()
Returns the default binding (set by |
| public Key |
| containsElement | back to summary |
|---|---|
| public boolean containsElement(Element element) Returns true if this OptionalBinder contains the given Element in order to build the optional
binding or uses the given Element in order to support building and injecting its data. This
will work for OptionalBinderBinding retrieved from an injector and | |
| getActualBinding | back to summary |
|---|---|
| public Binding Returns the actual binding (set by The Binding's type will always match the type Optional's generic type. For example, if
getKey returns a key of | |
| getAlternateKeys | back to summary |
|---|---|
| public Set Returns the keys of other bindings that represent this OptionalBinder. This will return an
entry for
| |
| getDefaultBinding | back to summary |
|---|---|
| public Binding Returns the default binding (set by The Binding's type will always match the type Optional's generic type. For example, if
getKey returns a key of | |
| getKey | back to summary |
|---|---|
| public Key Returns the | |