From 28cae3fa19d9d2ba866e7027d2d7b5cfaf2f2882 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 21 Jan 2024 16:33:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89=E3=83=81?= =?UTF-8?q?=E3=82=A7=E3=83=BC=E3=83=B3=E5=AF=BE=E5=BF=9CWIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/processor/DocumentProcessor.java | 10 +++++----- .../lacerta/processor/impl/DocumentProcessorImpl.java | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java b/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java index 8a967ff0..5876fc4d 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java +++ b/processor/src/main/java/one/nem/lacerta/processor/DocumentProcessor.java @@ -7,13 +7,13 @@ import one.nem.lacerta.model.document.DocumentDetail; public interface DocumentProcessor { // ページ操作 - void addNewPageToLast(Bitmap bitmap) throws Exception; - void addNewPagesToLast(Bitmap[] bitmaps) throws Exception; - void insertPageAtIndex(Bitmap bitmap, int index) throws Exception; - void removePageAtIndex(int index) throws Exception; + DocumentProcessor addNewPageToLast(Bitmap bitmap) throws Exception; + DocumentProcessor addNewPagesToLast(Bitmap[] bitmaps) throws Exception; + DocumentProcessor insertPageAtIndex(Bitmap bitmap, int index) throws Exception; + DocumentProcessor removePageAtIndex(int index) throws Exception; // 更新 - void updatePageAtIndex(Bitmap bitmap, int index); + DocumentProcessor updatePageAtIndex(Bitmap bitmap, int index); // ページ取得 Bitmap getPageAtIndex(int index); diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index 90cc7cf7..70ff5708 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -70,7 +70,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{ @Override - public void addNewPageToLast(Bitmap bitmap) throws Exception{ + public DocumentProcessor addNewPageToLast(Bitmap bitmap) throws Exception{ logger.debug("addNewPageToLast", "called"); String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする @@ -88,7 +88,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{ } @Override - public void addNewPagesToLast(Bitmap[] bitmaps) throws Exception{ + public DocumentProcessor addNewPagesToLast(Bitmap[] bitmaps) throws Exception{ logger.debug("addNewPagesToLast", "called"); for (Bitmap bitmap : bitmaps) { @@ -97,7 +97,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{ } @Override - public void insertPageAtIndex(Bitmap bitmap, int index) throws Exception { + public DocumentProcessor insertPageAtIndex(Bitmap bitmap, int index) throws Exception { logger.debug("addNewPageAfterIndex", "called"); String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする @@ -112,12 +112,12 @@ public class DocumentProcessorImpl implements DocumentProcessor{ } @Override - public void removePageAtIndex(int index) { + public DocumentProcessor removePageAtIndex(int index) { } @Override - public void updatePageAtIndex(Bitmap bitmap, int index) { + public DocumentProcessor updatePageAtIndex(Bitmap bitmap, int index) { }