diff --git a/src/main/java/io/jare/cached/CdBase.java b/src/main/java/io/jare/cached/CdBase.java index 0fc1569..b0983f1 100644 --- a/src/main/java/io/jare/cached/CdBase.java +++ b/src/main/java/io/jare/cached/CdBase.java @@ -28,6 +28,8 @@ import io.jare.model.Domain; import io.jare.model.User; import java.util.concurrent.TimeUnit; +import lombok.EqualsAndHashCode; +import lombok.ToString; /** * Cached Base. @@ -36,6 +38,8 @@ * @version $Id$ * @since 1.0 */ +@ToString +@EqualsAndHashCode(of = "origin") public final class CdBase implements Base { /** diff --git a/src/main/java/io/jare/cached/CdDomain.java b/src/main/java/io/jare/cached/CdDomain.java index 27b4157..910ba38 100644 --- a/src/main/java/io/jare/cached/CdDomain.java +++ b/src/main/java/io/jare/cached/CdDomain.java @@ -26,6 +26,8 @@ import io.jare.model.Domain; import io.jare.model.Usage; import java.io.IOException; +import lombok.EqualsAndHashCode; +import lombok.ToString; /** * Cached Domain. @@ -34,6 +36,8 @@ * @version $Id$ * @since 1.0 */ +@ToString +@EqualsAndHashCode(of = "origin") final class CdDomain implements Domain { /** diff --git a/src/main/java/io/jare/cached/CdUsage.java b/src/main/java/io/jare/cached/CdUsage.java index 0a78381..2dd6d7c 100644 --- a/src/main/java/io/jare/cached/CdUsage.java +++ b/src/main/java/io/jare/cached/CdUsage.java @@ -28,6 +28,8 @@ import java.util.Date; import java.util.SortedMap; import java.util.concurrent.TimeUnit; +import lombok.EqualsAndHashCode; +import lombok.ToString; /** * Cached Usage. @@ -36,6 +38,8 @@ * @version $Id$ * @since 0.7 */ +@ToString +@EqualsAndHashCode(of = "origin") final class CdUsage implements Usage { /** diff --git a/src/main/java/io/jare/dynamo/DyBase.java b/src/main/java/io/jare/dynamo/DyBase.java index 92ac091..7bdf5c9 100644 --- a/src/main/java/io/jare/dynamo/DyBase.java +++ b/src/main/java/io/jare/dynamo/DyBase.java @@ -34,6 +34,8 @@ import io.jare.model.User; import java.util.Locale; import java.util.stream.Collectors; +import lombok.EqualsAndHashCode; +import lombok.ToString; /** * Dynamo Base. @@ -43,6 +45,8 @@ * @since 1.0 * @checkstyle MultipleStringLiteralsCheck (500 lines) */ +@ToString +@EqualsAndHashCode(of = "region") public final class DyBase implements Base { /** diff --git a/src/main/java/io/jare/dynamo/DyDomain.java b/src/main/java/io/jare/dynamo/DyDomain.java index 838d4a5..943816d 100644 --- a/src/main/java/io/jare/dynamo/DyDomain.java +++ b/src/main/java/io/jare/dynamo/DyDomain.java @@ -27,6 +27,8 @@ import io.jare.model.Domain; import io.jare.model.Usage; import java.io.IOException; +import lombok.EqualsAndHashCode; +import lombok.ToString; /** * Dynamo domain. @@ -36,6 +38,8 @@ * @since 1.0 * @checkstyle MultipleStringLiteralsCheck (500 lines) */ +@ToString +@EqualsAndHashCode(of = "item") public final class DyDomain implements Domain { /** diff --git a/src/main/java/io/jare/dynamo/DyUsage.java b/src/main/java/io/jare/dynamo/DyUsage.java index 7f97611..d90fc31 100644 --- a/src/main/java/io/jare/dynamo/DyUsage.java +++ b/src/main/java/io/jare/dynamo/DyUsage.java @@ -40,6 +40,8 @@ import java.util.SortedMap; import java.util.TimeZone; import java.util.TreeMap; +import lombok.EqualsAndHashCode; +import lombok.ToString; import org.apache.commons.lang3.time.DateUtils; import org.w3c.dom.Node; import org.xembly.Directives; @@ -53,6 +55,8 @@ * @since 0.7 * @checkstyle MultipleStringLiteralsCheck (500 lines) */ +@ToString +@EqualsAndHashCode(of = "item") @SuppressWarnings("PMD.AvoidDuplicateLiterals") public final class DyUsage implements Usage { diff --git a/src/main/java/io/jare/dynamo/DyUser.java b/src/main/java/io/jare/dynamo/DyUser.java index a8c84b4..9808eb4 100644 --- a/src/main/java/io/jare/dynamo/DyUser.java +++ b/src/main/java/io/jare/dynamo/DyUser.java @@ -35,6 +35,8 @@ import java.util.Iterator; import java.util.Locale; import java.util.stream.Collectors; +import lombok.EqualsAndHashCode; +import lombok.ToString; /** * Dynamo user. @@ -44,6 +46,8 @@ * @since 1.0 * @checkstyle MultipleStringLiteralsCheck (500 lines) */ +@ToString +@EqualsAndHashCode(of = { "region", "handle" }) public final class DyUser implements User { /**