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 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)
      As createConfirmFromStrings(MessageSource, Collection) but uses getName() instead of toString().
      Parameters:
      msg -
      objects -
      Returns: