Class MessageUtils
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.MessageUtils
-
public class MessageUtils extends Object
Messages related utilities- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description MessageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createConfirmFromNames(MessageSource msg, Collection<? extends NamedObject> objects)
AscreateConfirmFromStrings(MessageSource, Collection)
but uses getName() instead of toString().static String
createConfirmFromStrings(MessageSource msg, Collection<?> objects)
Produces a string with at most 4 elements of the collection elements (toString() is called).
-
-
-
Method Detail
-
createConfirmFromStrings
public static String createConfirmFromStrings(MessageSource msg, Collection<?> objects)
Produces a string with at most 4 elements of the collection elements (toString() is called). If there are more elements an indication is appended.- Parameters:
msg
-objects
-- Returns:
-
createConfirmFromNames
public static String createConfirmFromNames(MessageSource msg, Collection<? extends NamedObject> objects)
AscreateConfirmFromStrings(MessageSource, Collection)
but uses getName() instead of toString().- Parameters:
msg
-objects
-- Returns:
-
-