This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> List<String> toString(List<T> aListOfTs) { | |
List<String> toPrint = new ArrayList<String>(); | |
for (T aT : aListOfTs) { | |
toPrint.add(aT.toString()); | |
} | |
return toPrint; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> Collection<T> toStringFiltered(List<T> aListOfTs) { | |
return Collections2.filter(aListOfTs, new Predicate<T>() | |
{ | |
public boolean apply(T from) { | |
return from.toString().isEmpty(); | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> List<String> toString(List<T> aListOfTs) { | |
List<String> toPrint = new ArrayList<String>(); | |
for (T aT : aListOfTs) { | |
toPrint.add(aT.toString()); | |
} | |
return toPrint; | |
} |
NewerOlder