Skip to content

Commit

Permalink
#24 lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 22, 2016
1 parent e504d25 commit 25da6da
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/jare/cached/CdBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -36,6 +38,8 @@
* @version $Id$
* @since 1.0
*/
@ToString
@EqualsAndHashCode(of = "origin")
public final class CdBase implements Base {

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/jare/cached/CdDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -34,6 +36,8 @@
* @version $Id$
* @since 1.0
*/
@ToString
@EqualsAndHashCode(of = "origin")
final class CdDomain implements Domain {

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/jare/cached/CdUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -36,6 +38,8 @@
* @version $Id$
* @since 0.7
*/
@ToString
@EqualsAndHashCode(of = "origin")
final class CdUsage implements Usage {

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/jare/dynamo/DyBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -43,6 +45,8 @@
* @since 1.0
* @checkstyle MultipleStringLiteralsCheck (500 lines)
*/
@ToString
@EqualsAndHashCode(of = "region")
public final class DyBase implements Base {

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/jare/dynamo/DyDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -36,6 +38,8 @@
* @since 1.0
* @checkstyle MultipleStringLiteralsCheck (500 lines)
*/
@ToString
@EqualsAndHashCode(of = "item")
public final class DyDomain implements Domain {

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/jare/dynamo/DyUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -53,6 +55,8 @@
* @since 0.7
* @checkstyle MultipleStringLiteralsCheck (500 lines)
*/
@ToString
@EqualsAndHashCode(of = "item")
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
public final class DyUsage implements Usage {

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/jare/dynamo/DyUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -44,6 +46,8 @@
* @since 1.0
* @checkstyle MultipleStringLiteralsCheck (500 lines)
*/
@ToString
@EqualsAndHashCode(of = { "region", "handle" })
public final class DyUser implements User {

/**
Expand Down

0 comments on commit 25da6da

Please sign in to comment.