Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. package org.openweathermap.api.model;
  2.  
  3. import com.google.gson.annotations.SerializedName;
  4.  
  5. public class Clouds {
  6. @SerializedName("all")
  7. private double all;
  8.  
  9. public Clouds() {
  10. }
  11.  
  12. public double getAll() {
  13. return this.all;
  14. }
  15.  
  16. public void setAll(double all) {
  17. this.all = all;
  18. }
  19.  
  20. public boolean equals(Object o) {
  21. if (o == this) {
  22. return true;
  23. } else if (!(o instanceof Clouds)) {
  24. return false;
  25. } else {
  26. Clouds other = (Clouds)o;
  27. if (!other.canEqual(this)) {
  28. return false;
  29. } else {
  30. return Double.compare(this.getAll(), other.getAll()) == 0;
  31. }
  32. }
  33. }
  34.  
  35. protected boolean canEqual(Object other) {
  36. return other instanceof Clouds;
  37. }
  38.  
  39. public int hashCode() {
  40. int PRIME = true;
  41. int result = 1;
  42. long $all = Double.doubleToLongBits(this.getAll());
  43. int result = result * 59 + (int)($all >>> 32 ^ $all);
  44. return result;
  45. }
  46.  
  47. public String toString() {
  48. return "Clouds(all=" + this.getAll() + ")";
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement