java.lang.Object
org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Stringify

public abstract class Stringify extends Object
Author:
Nick Grealy
  • Field Details

  • Constructor Details

    • Stringify

      public Stringify()
  • Method Details

    • stringify

      public static String stringify(Throwable t)
      Converts the given object to a String.
      Parameters:
      t - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(String message)
      Converts the given object to a String.
      Parameters:
      message - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static <A> String stringify(A[] array)
      Converts the given object to a String.
      Type Parameters:
      A - the type of the array
      Parameters:
      array - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static <A> String stringify(A[] array, String delimiter)
      Converts the given object to a String.
      Type Parameters:
      A -
      Parameters:
      array - the object to convert to a String.
      delimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(List list)
      Converts the given object to a String.
      Parameters:
      list - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(List list, String delimiter)
      Converts the given object to a String.
      Parameters:
      list - the object to convert to a String.
      delimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(Set list)
      Converts the given object to a String.
      Parameters:
      list - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(Set list, String delimiter)
      Converts the given object to a String.
      Parameters:
      list - the object to convert to a String.
      delimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(Iterator iterator, String pDelimiter)
      Converts the given object to a String.
      Parameters:
      iterator - the object to convert to a String.
      pDelimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(Iterator<? extends Map.Entry<?,?>> iterator, String pKeyValueDelimiter, String pDelimiter)
      Converts the given object to a String.
      Parameters:
      iterator - the object to convert to a String.
      pKeyValueDelimiter - a delimiter.
      pDelimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(Date date)
      Converts the given object to a String.
      Parameters:
      date - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(int messageNumber)
      Converts the given object to a String.
      Parameters:
      messageNumber - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(Enumeration allHeaders)
      Converts the given object to a String.
      Parameters:
      allHeaders - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(Map content)
      Converts the given object to a String.
      Parameters:
      content - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(Map<?,?> content, String keyValueDelimiter, String delimiter)
      Converts the given object to a String.
      Parameters:
      content - the object to convert to a String.
      keyValueDelimiter - a delimiter.
      delimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(Map.Entry content, String keyValueDelimiter)
      Converts the given object to a String.
      Parameters:
      content - the object to convert to a String.
      keyValueDelimiter - a delimiter.
      Returns:
      a String
    • stringify

      public static String stringify(Object content)
      Converts the given object to a String.
      Parameters:
      content - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(javax.mail.Header content)
      Converts the given object to a String.
      Parameters:
      content - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(javax.mail.Address[] addresses)
      Converts the given object to a String.
      Parameters:
      addresses - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(javax.mail.Part part)
      Get text from all parts of the email. Loosely based on oracle.com.
      Parameters:
      part - - the mail part to convert to string.
      Returns:
      a String
    • stringify

      public static String stringify(javax.mail.Flags flags)
      Converts the given object to a String.
      Parameters:
      flags - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(javax.mail.Flags.Flag flag)
      Converts the given object to a String.
      Parameters:
      flag - the object to convert to a String.
      Returns:
      a String
    • stringify

      public static String stringify(javax.mail.Folder folder)
      Converts the given object to a String.
      Parameters:
      folder - the object to convert to a String.
      Returns:
      a String