OSDN Git Service

CommentGetInfoインタフェース削除
authoryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 22:18:50 +0000 (07:18 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 22:18:50 +0000 (07:18 +0900)
frontend/src/saccubus/converter/Converter.java
frontend/src/saccubus/converter/classic/profile/CommentGetInfo.java
frontend/src/saccubus/converter/classic/profile/InputFileSetting.java
frontend/src/yukihane/saccubus/converter/profile/CommentGetInfo.java [deleted file]
frontend/src/yukihane/saccubus/converter/profile/CommentProfile.java

index 2d1b4c3..9bea3e8 100644 (file)
@@ -156,8 +156,8 @@ public class Converter extends AbstractCommand implements Runnable, Callable<Boo
         FileInstanciator.InstanciationType videoType = new FileInstanciator.InstanciationType(profile.getVideoSetting());
 
         FileInstanciator.CommentInstanciationType commentType = new FileInstanciator.CommentInstanciationType(profile.
-                getCommentSetting(), profile.getCommentSetting().getCommentGetInfo().isSelfAdjustCommentNum(), profile.getCommentSetting().getCommentGetInfo().
-                getBackComment(), profile.getCommentSetting().getCommentGetInfo().isReduceComment());
+                getCommentSetting(), profile.getCommentSetting().isSelfAdjustCommentNum(), profile.getCommentSetting().
+                getBackComment(), profile.getCommentSetting().isReduceComment());
 
         FileInstanciator.InstanciationType tcommType = new FileInstanciator.InstanciationType(
                 profile.getCommentSetting());
index 0624318..bf9dd85 100644 (file)
@@ -4,7 +4,7 @@ package saccubus.converter.classic.profile;
  * コメント取得に関するプロファイルです.
  * @author yuki
  */
-public class CommentGetInfo implements yukihane.saccubus.converter.profile.CommentGetInfo {
+public class CommentGetInfo {
 
     /** コメント取得数を自動調整するのであればtrue. */
     private final boolean selfAdjustCommentNum;
@@ -19,17 +19,14 @@ public class CommentGetInfo implements yukihane.saccubus.converter.profile.Comme
         this.reduceComment = reduceComment;
     }
 
-    @Override
     public boolean isSelfAdjustCommentNum() {
         return selfAdjustCommentNum;
     }
 
-    @Override
     public int getBackComment() {
         return backComment;
     }
 
-    @Override
     public boolean isReduceComment() {
         return reduceComment;
     }
index 7ac1413..7870bb8 100644 (file)
@@ -1,7 +1,6 @@
 /* $Id$ */
 package saccubus.converter.classic.profile;
 
-import yukihane.saccubus.converter.profile.CommentGetInfo;
 import yukihane.saccubus.converter.profile.CommentProfile;
 import yukihane.saccubus.converter.profile.VideoProfile;
 
@@ -43,7 +42,17 @@ public class InputFileSetting implements yukihane.saccubus.converter.profile.Inp
     }
 
     @Override
-    public CommentGetInfo getCommentGetInfo() {
-        return commentGetInfo;
+    public boolean isSelfAdjustCommentNum() {
+        return commentGetInfo.isSelfAdjustCommentNum();
+    }
+
+    @Override
+    public int getBackComment() {
+        return commentGetInfo.getBackComment();
+    }
+
+    @Override
+    public boolean isReduceComment() {
+        return commentGetInfo.isReduceComment();
     }
 }
diff --git a/frontend/src/yukihane/saccubus/converter/profile/CommentGetInfo.java b/frontend/src/yukihane/saccubus/converter/profile/CommentGetInfo.java
deleted file mode 100644 (file)
index d3afeb7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package yukihane.saccubus.converter.profile;
-
-/**
- *
- * @author yuki
- */
-public interface CommentGetInfo {
-
-    boolean isSelfAdjustCommentNum();
-
-    int getBackComment();
-
-    boolean isReduceComment();
-}
index e032fa4..edbc476 100644 (file)
@@ -6,5 +6,9 @@ package yukihane.saccubus.converter.profile;
  */
 public interface CommentProfile extends InputFileSetting {
 
-    CommentGetInfo getCommentGetInfo();
+    boolean isSelfAdjustCommentNum();
+
+    int getBackComment();
+
+    boolean isReduceComment();
 }