Skip to content

[JAVA] Add fluent methods to add items to list and put items to maps#3471

Merged
wing328 merged 1 commit intoswagger-api:masterfrom
cbornet:fluent_containers
Jul 29, 2016
Merged

[JAVA] Add fluent methods to add items to list and put items to maps#3471
wing328 merged 1 commit intoswagger-api:masterfrom
cbornet:fluent_containers

Conversation

@cbornet
Copy link
Copy Markdown
Contributor

@cbornet cbornet commented Jul 27, 2016

So you can do

Pet myPet = new Pet()
    .addPhotoUrlsItem(firstUrl)
    .addPhotoUrlsItem(secondUrl);

@cbornet cbornet force-pushed the fluent_containers branch from 085e196 to 3b4465d Compare July 27, 2016 16:19
@wing328 wing328 added this to the v2.2.1 milestone Jul 29, 2016
@wing328 wing328 merged commit 4e17221 into swagger-api:master Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants