public class MutableBindings extends Bindings
Bindings.Binding, Bindings.NullBinding, Bindings.ValueBinding
Constructor and Description |
---|
MutableBindings(BindMarkers markers)
Create new
MutableBindings . |
Modifier and Type | Method and Description |
---|---|
MutableBindings |
bind(BindMarker marker,
Object value)
Bind a value to
BindMarker . |
BindMarker |
bind(Object value)
Bind a value and return the related
BindMarker . |
MutableBindings |
bindNull(BindMarker marker,
Class<?> valueType)
Bind a
NULL value to BindMarker . |
BindMarker |
bindNull(Class<?> valueType)
Bind a
NULL value and return the related BindMarker . |
BindMarker |
nextMarker()
Obtain the next
BindMarker . |
BindMarker |
nextMarker(String hint)
Obtain the next
BindMarker with a name hint . |
and, apply, empty, forEach, getBindings, iterator, merge, spliterator
public MutableBindings(BindMarkers markers)
MutableBindings
.markers
- must not be null.public BindMarker nextMarker()
BindMarker
. Increments BindMarkers
state.BindMarker
.public BindMarker nextMarker(String hint)
hint
- name hint.BindMarker
.public MutableBindings bind(BindMarker marker, Object value)
BindMarker
.marker
- must not be null.value
- must not be null.this
MutableBindings
.public BindMarker bind(Object value)
BindMarker
. Increments BindMarkers
state.value
- must not be null.this
MutableBindings
.public MutableBindings bindNull(BindMarker marker, Class<?> valueType)
NULL
value to BindMarker
.marker
- must not be null.valueType
- must not be null.this
MutableBindings
.public BindMarker bindNull(Class<?> valueType)
valueType
- must not be null.this
MutableBindings
.Copyright © 2018–2019 Pivotal Software, Inc.. All rights reserved.