@Test public void testPrepend() throws Exception { SRTInfo srtInfo = new SRTInfo(); for (int i = 1; i <= 3; i++) { srtInfo.add(new SRT(i, SRTTimeFormat.parse("00:00:24,600"), SRTTimeFormat.parse("00:00:26,600"), "Foo" + i)); } SRTEditor.prependSubtitle(srtInfo, "00:00:24,600", "00:00:26,600", Arrays.asList("Foo100")); assertEquals(4, srtInfo.size()); SRT srt = srtInfo.get(1); assertEquals("Foo100", StringUtils.join(srt.text, "")); srt = srtInfo.get(2); assertEquals("Foo1", StringUtils.join(srt.text, "")); srt = srtInfo.get(3); assertEquals("Foo2", StringUtils.join(srt.text, "")); srt = srtInfo.get(4); assertEquals("Foo3", StringUtils.join(srt.text, "")); }
public static void prependSubtitle(SRTInfo info, String startTime, String endTime, List<String> text) { insertSubtitle(info, 1, startTime, endTime, text); }
SRTEditor { public static void prependSubtitle(SRTInfo info, String startTime, String endTime, List<String> text) { insertSubtitle(info, 1, startTime, endTime, text); } }
SRTEditor { public static void prependSubtitle(SRTInfo info, String startTime, String endTime, List<String> text) { insertSubtitle(info, 1, startTime, endTime, text); } private  SRTEditor(); }
SRTEditor { public static void prependSubtitle(SRTInfo info, String startTime, String endTime, List<String> text) { insertSubtitle(info, 1, startTime, endTime, text); } private  SRTEditor(); static void updateTime(SRTInfo info, int subtitleNumber,
        SRTTimeFormat.Type type, int value); static void updateTimes(SRTInfo info, SRTTimeFormat.Type type, int value); static void updateText(SRTInfo info, int subtitleNumber, int width); static void updateTexts(SRTInfo info, int width); static void appendSubtitle(SRTInfo info, String startTime,
        String endTime, List<String> text); static void prependSubtitle(SRTInfo info, String startTime,
        String endTime, List<String> text); static void insertSubtitle(SRTInfo info, int subtitleNumber,
        String startTime, String endTime, List<String> text); static void insertSubtitle(SRTInfo info, SRT newSRT); static void removeSubtitle(SRTInfo info, int subtitleNumber); static void updateSubtitle(SRTInfo info, SRT srt); }
SRTEditor { public static void prependSubtitle(SRTInfo info, String startTime, String endTime, List<String> text) { insertSubtitle(info, 1, startTime, endTime, text); } private  SRTEditor(); static void updateTime(SRTInfo info, int subtitleNumber,
        SRTTimeFormat.Type type, int value); static void updateTimes(SRTInfo info, SRTTimeFormat.Type type, int value); static void updateText(SRTInfo info, int subtitleNumber, int width); static void updateTexts(SRTInfo info, int width); static void appendSubtitle(SRTInfo info, String startTime,
        String endTime, List<String> text); static void prependSubtitle(SRTInfo info, String startTime,
        String endTime, List<String> text); static void insertSubtitle(SRTInfo info, int subtitleNumber,
        String startTime, String endTime, List<String> text); static void insertSubtitle(SRTInfo info, SRT newSRT); static void removeSubtitle(SRTInfo info, int subtitleNumber); static void updateSubtitle(SRTInfo info, SRT srt);  }