X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fhtmlindexer%2Fmetadata%2FDimension.java;h=b25c6b7584b5ae79808b21efa71e14cccd32a65d;hb=567410640f4e0428caf9de9fc83df4c73f0e5067;hp=78417830e22f6552648a58721bcfd94eff1c0511;hpb=50cb7085d553fdd82cd06806cd27b1675299f719;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java index 7841783..b25c6b7 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/Dimension.java @@ -1,11 +1,11 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. - */ + * modify it under the terms of version 3 of the GNU Lesser General Public License + * or later as published by the Free Software Foundation. +*/ package eu.svjatoslav.meviz.htmlindexer.metadata; @@ -22,7 +22,7 @@ public class Dimension implements Serializable, Comparable { public int width; public int height; - public Dimension() { + private Dimension() { width = 0; height = 0; } @@ -53,9 +53,7 @@ public class Dimension implements Serializable, Comparable { } public boolean equals(final Dimension anotherDimension) { - if (compareTo(anotherDimension) == 0) - return true; - return false; + return compareTo(anotherDimension) == 0; } public int getArea() { @@ -74,4 +72,10 @@ public class Dimension implements Serializable, Comparable { return result; } + + @Override + public String toString() { + return "Dimension [width=" + width + ", height=" + height + "]"; + } + }