Changed license to CC0.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / metadata / Dimension.java
index 7841783..6dc4bfa 100755 (executable)
@@ -1,12 +1,9 @@
 /*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, 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.
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
 
+
 package eu.svjatoslav.meviz.htmlindexer.metadata;
 
 import java.io.Serializable;
@@ -22,7 +19,7 @@ public class Dimension implements Serializable, Comparable<Dimension> {
     public int width;
     public int height;
 
-    public Dimension() {
+    private Dimension() {
         width = 0;
         height = 0;
     }
@@ -53,9 +50,7 @@ public class Dimension implements Serializable, Comparable<Dimension> {
     }
 
     public boolean equals(final Dimension anotherDimension) {
-        if (compareTo(anotherDimension) == 0)
-            return true;
-        return false;
+        return compareTo(anotherDimension) == 0;
     }
 
     public int getArea() {
@@ -74,4 +69,10 @@ public class Dimension implements Serializable, Comparable<Dimension> {
 
         return result;
     }
+
+    @Override
+    public String toString() {
+        return "Dimension [width=" + width + ", height=" + height + "]";
+    }
+
 }