Skip to content

Commit

Permalink
Merge pull request #32 from support-project/develop
Browse files Browse the repository at this point in the history
Release v1.10.0
  • Loading branch information
koda-masaru authored Jul 19, 2017
2 parents 5dfbd74 + 0468e46 commit 5eae943
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.support-project</groupId>
<artifactId>common</artifactId>
<version>1.9.0</version>
<version>1.10.0</version>
<packaging>jar</packaging>

<name>common</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
import java.util.ArrayList;
import java.util.List;

public class StringJoinBuilder {
public class StringJoinBuilder<T extends Object> {

private List<Object> params = new ArrayList<>();
private List<T> params = new ArrayList<>();

public StringJoinBuilder() {
super();
}

public StringJoinBuilder(List<Object> params) {
public StringJoinBuilder(List<T> params) {
super();
this.params = params;
}

public StringJoinBuilder(Object[] array) {
public StringJoinBuilder(T[] array) {
super();
for (Object o : array) {
for (T o : array) {
params.add(o);
}
}

public StringJoinBuilder append(Object obj) {
public StringJoinBuilder append(T obj) {
params.add(obj);
return this;
}

public String join(String delimiter) {
StringBuilder builder = new StringBuilder();
int count = 0;
for (Object object : params) {
for (T object : params) {
if (count > 0) {
builder.append(delimiter);
}
Expand Down

0 comments on commit 5eae943

Please sign in to comment.