That fuck shit the fascists are using
at master 49 lines 1.1 kB view raw
1package org.tm.archive.delete; 2 3import androidx.annotation.NonNull; 4 5import java.util.Objects; 6 7final class Country { 8 private final String displayName; 9 private final int code; 10 private final String normalized; 11 private final String region; 12 13 Country(@NonNull String displayName, int code, @NonNull String region) { 14 this.displayName = displayName; 15 this.code = code; 16 this.normalized = displayName.toLowerCase(); 17 this.region = region; 18 } 19 20 int getCode() { 21 return code; 22 } 23 24 @NonNull String getDisplayName() { 25 return displayName; 26 } 27 28 public String getNormalizedDisplayName() { 29 return normalized; 30 } 31 32 @NonNull String getRegion() { 33 return region; 34 } 35 36 @Override 37 public boolean equals(Object o) { 38 if (this == o) return true; 39 if (o == null || getClass() != o.getClass()) return false; 40 Country country = (Country) o; 41 return displayName.equals(country.displayName) && 42 code == country.code; 43 } 44 45 @Override 46 public int hashCode() { 47 return Objects.hash(displayName, code); 48 } 49}