Mercurial > hg > openmind
changeset 101:c418851eeb86
change getShortStringList to use Collection.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 09 Nov 2018 13:53:27 +0100 |
parents | 734c0d8c7369 |
children | 68e759210b53 |
files | src/main/java/org/mpi/openmind/repository/bo/Entity.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/repository/bo/Entity.java Wed Oct 31 15:44:12 2018 +0100 +++ b/src/main/java/org/mpi/openmind/repository/bo/Entity.java Fri Nov 09 13:53:27 2018 +0100 @@ -3,6 +3,7 @@ import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.util.ArrayList; +import java.util.Collection; import java.util.List; import javax.persistence.DiscriminatorValue; @@ -1088,7 +1089,7 @@ return "[" + this.getObjectClass() + " " + this.getId() + "] \"" + this.getOwnValue() + "\" "; } - public static String getShortStringList(List<Entity> entities) { + public static String getShortStringList(Collection<Entity> entities) { StringBuffer s = new StringBuffer(); for (Entity ent : entities) { s.append((s.length() > 0) ? ", " : "");