Skip to content

Commit

Permalink
GEODE-8260: add toString to RedisData classes (apache#5255)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschneider-pivotal authored Jun 16, 2020
1 parent bcbc53b commit a5c8164
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
import org.apache.geode.redis.internal.delta.TimestampDeltaInfo;

public abstract class AbstractRedisData implements RedisData {
@Override
public String toString() {
return "expirationTimestamp=" + expirationTimestamp;
}

private static final long NO_EXPIRATION = -1L;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,12 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(super.hashCode(), hash);
}

@Override
public String toString() {
return "RedisHash{" +
super.toString() + ", " +
"hash=" + hash +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,12 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(super.hashCode(), members);
}

@Override
public String toString() {
return "RedisSet{" +
super.toString() + ", " +
"members=" + members +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -658,4 +658,12 @@ public int hashCode() {
ByteArrayWrapper getValue() {
return value;
}

@Override
public String toString() {
return "RedisString{" +
super.toString() + ", " +
"value=" + value +
'}';
}
}

0 comments on commit a5c8164

Please sign in to comment.