public class ProgramTimeList extends Object
Constructor and Description |
---|
ProgramTimeList()
Create empty List
|
ProgramTimeList(ProgramTimeList list)
Copy another List
|
Modifier and Type | Method and Description |
---|---|
void |
add(ProgramTime prgTime)
Add ProgramTime to List
|
Object |
clone()
Clone
|
boolean |
contains(Program program)
Contains Progam in list?
|
int |
getMaxProgramsInTime(ProgramTime prgTime)
Returns the Maximum amount of overlapping Programs
|
ProgramTime |
getProgamTimeForProgram(Program program)
Get ProgramTime for a specific Program
|
Program[] |
getPrograms()
Returns an Array of Programs in this List
|
ProgramTime[] |
getProgramTimes()
Returns an Array of ProgramTimes in this List
|
void |
readData(ObjectInputStream in)
Read Data from Stream
|
void |
remove(ProgramTime prgTime)
Removes a ProgramTime from List
|
void |
writeData(ObjectOutputStream out)
Save data to Stream
|
public ProgramTimeList()
public ProgramTimeList(ProgramTimeList list)
list
- List to copypublic boolean contains(Program program)
program
- Programpublic void add(ProgramTime prgTime)
prgTime
- ProgramTime to addpublic ProgramTime getProgamTimeForProgram(Program program)
program
- Programpublic void remove(ProgramTime prgTime)
prgTime
- ProgramTimepublic Program[] getPrograms()
public ProgramTime[] getProgramTimes()
public void writeData(ObjectOutputStream out) throws IOException
out
- save to this streamIOException
- problems during save operationpublic void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- read from this streamIOException
- problems during read operationClassNotFoundException
- class creation problemspublic int getMaxProgramsInTime(ProgramTime prgTime)
prgTime
- Check for Time-Overlappings with this ProgramTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)