Skip to content

Commit ec0f634

Browse files
authored
Merge pull request eugenp#7213 from amit2103/BAEL-14274-17
[BAEL-14274] - Fixed article code for https://www.baeldung.com/java-g…
2 parents 568030e + fc0fa0d commit ec0f634

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

  • core-java-modules/core-java-8/src/main/java/com/baeldung/java_8_features/groupingby
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.baeldung.java_8_features.groupingby;
2+
3+
public class Tuple {
4+
5+
private BlogPostType type;
6+
private String author;
7+
8+
public Tuple(BlogPostType type, String author) {
9+
super();
10+
this.type = type;
11+
this.author = author;
12+
}
13+
14+
public BlogPostType getType() {
15+
return type;
16+
}
17+
18+
public void setType(BlogPostType type) {
19+
this.type = type;
20+
}
21+
22+
public String getAuthor() {
23+
return author;
24+
}
25+
26+
public void setAuthor(String author) {
27+
this.author = author;
28+
}
29+
30+
@Override
31+
public String toString() {
32+
return "Tuple [type=" + type + ", author=" + author + ", getType()=" + getType() + ", getAuthor()=" + getAuthor() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
33+
}
34+
}

0 commit comments

Comments
 (0)