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
(pl.edu.icm.unity.base.message.MessageSource msg, Collection<? extends pl.edu.icm.unity.base.describedObject.NamedObject> objects) AscreateConfirmFromStrings(MessageSource, Collection)
but uses getName() instead of toString().static String
createConfirmFromStrings
(pl.edu.icm.unity.base.message.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
public static String createConfirmFromStrings(pl.edu.icm.unity.base.message.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(pl.edu.icm.unity.base.message.MessageSource msg, Collection<? extends pl.edu.icm.unity.base.describedObject.NamedObject> objects) AscreateConfirmFromStrings(MessageSource, Collection)
but uses getName() instead of toString().- Parameters:
msg
-objects
-- Returns:
-