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 anIterable
into aCollection
.
-
Constructor Details
-
BugzillaUtils
public BugzillaUtils()
-
-
Method Details
-
transform
public static <T> java.util.Collection<T> transform(java.lang.Iterable<T> iterable)Transforms anIterable
into aCollection
.- Parameters:
iterable
- iterable to transform- Returns:
- the collection
-
debug
Debugs an issue in log file.- Parameters:
issue
- issue to be debugged
-
debug
Debugs an comment in log file.- Parameters:
comment
- to be debugged
-
parseDate
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
-