File tree Expand file tree Collapse file tree 5 files changed +4
-65
lines changed
data/src/main/java/com/fernandocejas/android10/sample/data
domain/src/main/java/com/fernandocejas/android10/sample/domain
presentation/src/main/java/com/fernandocejas/android10/sample/presentation Expand file tree Collapse file tree 5 files changed +4
-65
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,6 @@ public String getCoverUrl() {
5656 return coverUrl ;
5757 }
5858
59- public void setCoverUrl (String coverUrl ) {
60- this .coverUrl = coverUrl ;
61- }
62-
6359 public String getFullname () {
6460 return fullname ;
6561 }
@@ -72,38 +68,11 @@ public String getDescription() {
7268 return description ;
7369 }
7470
75- public void setDescription (String description ) {
76- this .description = description ;
77- }
78-
7971 public int getFollowers () {
8072 return followers ;
8173 }
8274
83- public void setFollowers (int followers ) {
84- this .followers = followers ;
85- }
86-
8775 public String getEmail () {
8876 return email ;
8977 }
90-
91- public void setEmail (String email ) {
92- this .email = email ;
93- }
94-
95- @ Override public String toString () {
96- StringBuilder stringBuilder = new StringBuilder ();
97-
98- stringBuilder .append ("***** User Entity Details *****\n " );
99- stringBuilder .append ("id=" + this .getUserId () + "\n " );
100- stringBuilder .append ("cover url=" + this .getCoverUrl () + "\n " );
101- stringBuilder .append ("fullname=" + this .getFullname () + "\n " );
102- stringBuilder .append ("email=" + this .getEmail () + "\n " );
103- stringBuilder .append ("description=" + this .getDescription () + "\n " );
104- stringBuilder .append ("followers=" + this .getFollowers () + "\n " );
105- stringBuilder .append ("*******************************" );
106-
107- return stringBuilder .toString ();
108- }
10978}
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ public UserDataStore create(int userId) {
5858 * Create {@link UserDataStore} to retrieve data from the Cloud.
5959 */
6060 public UserDataStore createCloudDataStore () {
61- UserEntityJsonMapper userEntityJsonMapper = new UserEntityJsonMapper ();
62- RestApi restApi = new RestApiImpl (this .context , userEntityJsonMapper );
61+ final UserEntityJsonMapper userEntityJsonMapper = new UserEntityJsonMapper ();
62+ final RestApi restApi = new RestApiImpl (this .context , userEntityJsonMapper );
6363
6464 return new CloudUserDataStore (restApi , this .userCache );
6565 }
Original file line number Diff line number Diff line change @@ -75,19 +75,4 @@ public int getFollowers() {
7575 public void setFollowers (int followers ) {
7676 this .followers = followers ;
7777 }
78-
79- @ Override public String toString () {
80- final StringBuilder stringBuilder = new StringBuilder ();
81-
82- stringBuilder .append ("***** User Details *****\n " );
83- stringBuilder .append ("id=" + this .getUserId () + "\n " );
84- stringBuilder .append ("cover url=" + this .getCoverUrl () + "\n " );
85- stringBuilder .append ("fullname=" + this .getFullName () + "\n " );
86- stringBuilder .append ("email=" + this .getEmail () + "\n " );
87- stringBuilder .append ("description=" + this .getDescription () + "\n " );
88- stringBuilder .append ("followers=" + this .getFollowers () + "\n " );
89- stringBuilder .append ("*******************************" );
90-
91- return stringBuilder .toString ();
92- }
9378}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public UserModel transform(User user) {
4343 if (user == null ) {
4444 throw new IllegalArgumentException ("Cannot transform a null value" );
4545 }
46- UserModel userModel = new UserModel (user .getUserId ());
46+ final UserModel userModel = new UserModel (user .getUserId ());
4747 userModel .setCoverUrl (user .getCoverUrl ());
4848 userModel .setFullName (user .getFullName ());
4949 userModel .setEmail (user .getEmail ());
Original file line number Diff line number Diff line change 55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http://www.apache.org/licenses/LICENSE-2.0
8+ * http://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
@@ -75,19 +75,4 @@ public int getFollowers() {
7575 public void setFollowers (int followers ) {
7676 this .followers = followers ;
7777 }
78-
79- @ Override public String toString () {
80- final StringBuilder stringBuilder = new StringBuilder ();
81-
82- stringBuilder .append ("***** User Model Details *****\n " );
83- stringBuilder .append ("id=" + this .getUserId () + "\n " );
84- stringBuilder .append ("cover url=" + this .getCoverUrl () + "\n " );
85- stringBuilder .append ("fullname=" + this .getFullName () + "\n " );
86- stringBuilder .append ("email=" + this .getEmail () + "\n " );
87- stringBuilder .append ("description=" + this .getDescription () + "\n " );
88- stringBuilder .append ("followers=" + this .getFollowers () + "\n " );
89- stringBuilder .append ("*******************************" );
90-
91- return stringBuilder .toString ();
92- }
9378}
You can’t perform that action at this time.
0 commit comments