|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.program.ProgramUtilities
public class ProgramUtilities
Provides utilities for program stuff.
| Constructor Summary | |
|---|---|
ProgramUtilities()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgramUtilities()
| Method Detail |
|---|
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 check
public static ArrayList<String>[] splitActors(Program program)
program - the program containing the actors
public static String[] getActorNames(Program program)
program - the program to work on
public static String getTimeZoneCorrectedProgramId(String progID)
progID - The id to get the time zone corrected for.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||