Class MessageUtils
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.MessageUtils
-
public class MessageUtils extends java.lang.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 java.lang.String
createConfirmFromNames(UnityMessageSource msg, java.util.Collection<? extends pl.edu.icm.unity.types.NamedObject> objects)
AscreateConfirmFromStrings(UnityMessageSource, Collection)
but uses getName() instead of toString().static java.lang.String
createConfirmFromStrings(UnityMessageSource msg, java.util.Collection<?> objects)
Produces a string with at most 4 elements of the collection elements (toString() is called).
-
-
-
Method Detail
-
createConfirmFromStrings
public static java.lang.String createConfirmFromStrings(UnityMessageSource msg, java.util.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 java.lang.String createConfirmFromNames(UnityMessageSource msg, java.util.Collection<? extends pl.edu.icm.unity.types.NamedObject> objects)
AscreateConfirmFromStrings(UnityMessageSource, Collection)
but uses getName() instead of toString().- Parameters:
msg
-objects
-- Returns:
-
-