public class ProgramUtilities extends Object
Constructor and Description |
---|
ProgramUtilities() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getActorNames(Program program)
extract the actor names from the actor field
|
static Comparator<Program> |
getProgramComparator()
comparator to sort programs by date, time and position in channel list
|
static String |
getTimeZoneCorrectedProgramId(String progID)
Gets the time zone corrected program id of the given program id.
|
static boolean |
isNotInTimeRange(int timeFrom,
int timeTo,
Program p)
A helper method to get if a program is not in a time range.
|
static boolean |
isOnAir(Program p)
Helper method to check if a program runs.
|
static ArrayList<String>[] |
splitActors(Program program)
get the actors and roles of a program
|
public static boolean isOnAir(Program p)
p
- The program to check.public static Comparator<Program> getProgramComparator()
public static boolean isNotInTimeRange(int timeFrom, int timeTo, Program p)
timeFrom
- The beginning of the time range to checktimeTo
- The ending of the time rangep
- The program to checkpublic static ArrayList<String>[] splitActors(Program program)
program
- the program containing the actorspublic static String[] getActorNames(Program program)
program
- the program to work onpublic static String getTimeZoneCorrectedProgramId(String progID)
progID
- The id to get the time zone corrected for.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)