Package b4j.util

Class BugzillaUtils

java.lang.Object
b4j.util.BugzillaUtils

public class BugzillaUtils
extends java.lang.Object
Provides some useful methods for all classes.
Author:
Ralph Schuster
  • Constructor Summary

    Constructors 
    Constructor Description
    BugzillaUtils()  
  • Method Summary

    Modifier and Type Method Description
    static void debug​(Comment comment)
    Debugs an comment in log file.
    static void debug​(Issue issue)
    Debugs an issue in log file.
    static RsDate parseDate​(java.lang.String s)
    Parses the date by trying various formats.
    static <T> java.util.Collection<T> transform​(java.lang.Iterable<T> iterable)
    Transforms an Iterable into a Collection.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • transform

      public static <T> java.util.Collection<T> transform​(java.lang.Iterable<T> iterable)
      Transforms an Iterable into a Collection.
      Parameters:
      iterable - iterable to transform
      Returns:
      the collection
    • debug

      public static void debug​(Issue issue)
      Debugs an issue in log file.
      Parameters:
      issue - issue to be debugged
    • debug

      public static void debug​(Comment comment)
      Debugs an comment in log file.
      Parameters:
      comment - to be debugged
    • parseDate

      public static RsDate parseDate​(java.lang.String s) throws java.text.ParseException
      Parses the date by trying various formats.
      Parameters:
      s - string to parse
      Returns:
      date parsed
      Throws:
      java.text.ParseException - when the date could not be parsed