Class MessageUtils
java.lang.Object
pl.edu.icm.unity.engine.api.utils.MessageUtils
Messages related utilities
- Author:
- K. Benedyczak
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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).
-
Constructor Details
-
MessageUtils
public MessageUtils()
-
-
Method Details
-
createConfirmFromStrings
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:
-