OSDN Git Service

古いコンフィグを削除
[coroid/inqubus.git] / frontend / src / saccubus / FFmpegSelectedItem.java
1 package saccubus;
2
3 import java.io.File;
4
5 public class FFmpegSelectedItem {
6         private final int Index;
7
8         private final File File;
9
10         private final String Name;
11
12         FFmpegSelectedItem(int index, File file, String name) {
13                 Index = index;
14                 File = file;
15                 if (name == null) {
16                         String tmp = file.getName();
17                         Name = tmp.substring(0, tmp.lastIndexOf("."));
18                 } else {
19                         Name = name;
20                 }
21         }
22
23     @Override
24         public String toString() {
25                 return Name;
26         }
27
28         File getFile() {
29                 return File;
30         }
31
32         /**
33          * 識別に使う
34          *
35          * @return
36          */
37         int getIndex() {
38                 return Index;
39         }
40 }