Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
821af302
Commit
821af302
authored
Mar 30, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing javadoc for Bindable
Closes gh-12643
parent
f108224b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Bindable.java
...pringframework/boot/context/properties/bind/Bindable.java
+14
-0
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java
View file @
821af302
...
@@ -66,6 +66,10 @@ public final class Bindable<T> {
...
@@ -66,6 +66,10 @@ public final class Bindable<T> {
return
this
.
type
;
return
this
.
type
;
}
}
/**
* Return the boxed type of the item to bind.
* @return the boxed type for the item being bound
*/
public
ResolvableType
getBoxedType
()
{
public
ResolvableType
getBoxedType
()
{
return
this
.
boxedType
;
return
this
.
boxedType
;
}
}
...
@@ -149,6 +153,11 @@ public final class Bindable<T> {
...
@@ -149,6 +153,11 @@ public final class Bindable<T> {
(
annotations
==
null
?
NO_ANNOTATIONS
:
annotations
));
(
annotations
==
null
?
NO_ANNOTATIONS
:
annotations
));
}
}
/**
* Create an updated {@link Bindable} instance with an existing value.
* @param existingValue the existing value
* @return an updated {@link Bindable}
*/
public
Bindable
<
T
>
withExistingValue
(
T
existingValue
)
{
public
Bindable
<
T
>
withExistingValue
(
T
existingValue
)
{
Assert
.
isTrue
(
Assert
.
isTrue
(
existingValue
==
null
||
this
.
type
.
isArray
()
existingValue
==
null
||
this
.
type
.
isArray
()
...
@@ -158,6 +167,11 @@ public final class Bindable<T> {
...
@@ -158,6 +167,11 @@ public final class Bindable<T> {
return
new
Bindable
<>(
this
.
type
,
this
.
boxedType
,
value
,
NO_ANNOTATIONS
);
return
new
Bindable
<>(
this
.
type
,
this
.
boxedType
,
value
,
NO_ANNOTATIONS
);
}
}
/**
* Create an updated {@link Bindable} instance with a value supplier.
* @param suppliedValue the supplier for the value
* @return an updated {@link Bindable}
*/
public
Bindable
<
T
>
withSuppliedValue
(
Supplier
<
T
>
suppliedValue
)
{
public
Bindable
<
T
>
withSuppliedValue
(
Supplier
<
T
>
suppliedValue
)
{
return
new
Bindable
<>(
this
.
type
,
this
.
boxedType
,
suppliedValue
,
NO_ANNOTATIONS
);
return
new
Bindable
<>(
this
.
type
,
this
.
boxedType
,
suppliedValue
,
NO_ANNOTATIONS
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment