-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
50 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lombok.equalsAndHashCode.callSuper = call |
50 changes: 9 additions & 41 deletions
50
xchange-core/src/main/java/org/knowm/xchange/dto/account/AddressWithTag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,16 @@ | ||
package org.knowm.xchange.dto.account; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
public final class AddressWithTag implements Serializable { | ||
@Value | ||
@Builder | ||
@AllArgsConstructor | ||
public class AddressWithTag { | ||
|
||
private final String address; | ||
private final String addressTag; | ||
String address; | ||
|
||
public AddressWithTag(String address, String addressTag) { | ||
this.address = address; | ||
this.addressTag = addressTag; | ||
} | ||
String addressTag; | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
public String getAddressTag() { | ||
return addressTag; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "AddressWithTag{" | ||
+ "address='" | ||
+ address | ||
+ '\'' | ||
+ ", addressTag='" | ||
+ addressTag | ||
+ '\'' | ||
+ '}'; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
AddressWithTag that = (AddressWithTag) o; | ||
return Objects.equals(address, that.address) && Objects.equals(addressTag, that.addressTag); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(address, addressTag); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lombok.equalsAndHashCode.callSuper = call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters