2009-06-27 12:02:31 -04:00
|
|
|
|
2014-04-19 02:30:29 -04:00
|
|
|
package net.filebot.subtitle;
|
2009-06-27 12:02:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
public class SubtitleElement {
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
private final long start;
|
|
|
|
private final long end;
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
private final String text;
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
|
|
|
|
public SubtitleElement(long start, long end, String text) {
|
|
|
|
this.start = start;
|
|
|
|
this.end = end;
|
|
|
|
this.text = text;
|
|
|
|
}
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
|
|
|
|
public long getStart() {
|
|
|
|
return start;
|
|
|
|
}
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
|
|
|
|
public long getEnd() {
|
|
|
|
return end;
|
|
|
|
}
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
|
|
|
|
public String getText() {
|
|
|
|
return text;
|
|
|
|
}
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return String.format("[%d, %d] %s", start, end, text);
|
|
|
|
}
|
2015-07-25 18:47:19 -04:00
|
|
|
|
2009-06-27 12:02:31 -04:00
|
|
|
}
|