private boolean shown = true;
- private final List<IkSwitch> ikSwList = new LinkedList<IkSwitch>();
+ private final List<IkSwitch> ikSwList = new LinkedList<>();
/**
@Override
public Iterator<BezierParam> iterator(){
List<BezierParam> list;
- list = new ArrayList<BezierParam>(IT_SZ);
+ list = new ArrayList<>(IT_SZ);
list.add(this.intpltXpos);
list.add(this.intpltYpos);
list.add(this.intpltZpos);
public VmdMotion(){
super();
- this.bonePartMap = new LinkedHashMap<String, List<BoneMotion>>();
- this.morphPartMap = new LinkedHashMap<String, List<MorphMotion>>();
+ this.bonePartMap = new LinkedHashMap<>();
+ this.morphPartMap = new LinkedHashMap<>();
- this.cameraMotionList = new LinkedList<CameraMotion>();
- this.luminousMotionList = new LinkedList<LuminousMotion>();
- this.shadowMotionList = new LinkedList<ShadowMotion>();
- this.flagList = new LinkedList<NumberedVmdFlag>();
+ this.cameraMotionList = new LinkedList<>();
+ this.luminousMotionList = new LinkedList<>();
+ this.shadowMotionList = new LinkedList<>();
+ this.flagList = new LinkedList<>();
return;
}
List<BoneMotion> list = this.bonePartMap.get(name);
if(list == null){
- list = new LinkedList<BoneMotion>();
+ list = new LinkedList<>();
this.bonePartMap.put(name, list);
}
List<MorphMotion> list = this.morphPartMap.get(name);
if(list == null){
- list = new LinkedList<MorphMotion>();
+ list = new LinkedList<>();
this.morphPartMap.put(name, list);
}
Map<String, List<BoneMotion>> map = motion.getBonePartMap();
- List<BoneMotion> bmotionList = new LinkedList<BoneMotion>();
+ List<BoneMotion> bmotionList = new LinkedList<>();
for(List<BoneMotion> eachList : map.values()){
bmotionList.addAll(eachList);
}
throws IOException, IllegalTextExportException{
Map<String, List<MorphMotion>> map = motion.getMorphPartMap();
- List<MorphMotion> morphList = new LinkedList<MorphMotion>();
+ List<MorphMotion> morphList = new LinkedList<>();
for(List<MorphMotion> eachList : map.values()){
morphList.addAll(eachList);
}
private static final Map<String, VmdTag> NAME_MAP =
- new HashMap<String, VmdTag>();
+ new HashMap<>();
static{
for(VmdTag tag : values()){
* @return 解析されたコマンドライン並び
*/
static List<CmdLine> parse(List<String> argList){
- List<CmdLine> result = new LinkedList<CmdLine>();
+ List<CmdLine> result = new LinkedList<>();
Iterator<String> it = argList.iterator();
while (it.hasNext()) {
if (info.opt != null) {
exArgNum = info.opt.getExArgNum();
}
- info.optArgs = new ArrayList<String>(exArgNum + 1);
+ info.optArgs = new ArrayList<>(exArgNum + 1);
info.optArgs.add(arg);
private static final Map<String, OptSwitch> MAP_OPT;
static{
- Map<String, OptSwitch> map = new HashMap<String, OptSwitch>();
+ Map<String, OptSwitch> map = new HashMap<>();
for(OptSwitch opt : values()){
for(String cmdarg : opt.cmdopts){