diff -r b329573c76d7 -r 8e9983260624 java/copy-image-resizer/src/cz/frantovo/copyImageResizer/SizeSpecification.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/SizeSpecification.java Mon Nov 17 17:02:48 2014 +0100 @@ -0,0 +1,58 @@ +/** + * copy-image-resizer + * Copyright © 2014 František Kučera (frantovo.cz) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package cz.frantovo.copyImageResizer; + +/** + * + * @author Ing. František Kučera (frantovo.cz) + */ +public class SizeSpecification { + + private final int width; + private final int height; + private final String directory; + private final boolean resizeSmaller; + + public SizeSpecification(int width, int height, String directory, boolean resizeSmaller) { + this.width = width; + this.height = height; + this.directory = directory; + this.resizeSmaller = resizeSmaller; + } + + public int getWidth() { + return width; + } + + public int getHeight() { + return height; + } + + public String getDirectory() { + return directory; + } + + public boolean isResizeSmaller() { + return resizeSmaller; + } + + @Override + public String toString() { + return width + "×" + height + " → " + directory; + } +}