Last active
May 1, 2018 14:13
-
-
Save tsengvn/4aa6c1dcce5d8ba1e5750f2a88c322d9 to your computer and use it in GitHub Desktop.
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
public static final class Hero { | |
@NotNull | |
private final String name; | |
@NotNull | |
private final String weapon; | |
@NotNull | |
public final String getName() { | |
return this.name; | |
} | |
@NotNull | |
public final String getWeapon() { | |
return this.weapon; | |
} | |
public Hero(@NotNull String name, @NotNull String weapon) { | |
Intrinsics.checkParameterIsNotNull(name, "name"); | |
Intrinsics.checkParameterIsNotNull(weapon, "weapon"); | |
super(); | |
this.name = name; | |
this.weapon = weapon; | |
} | |
// $FF: synthetic method | |
public Hero(String var1, String var2, int var3, DefaultConstructorMarker var4) { | |
if ((var3 & 1) != 0) { | |
var1 = "Thor"; | |
} | |
if ((var3 & 2) != 0) { | |
var2 = "Mjolnir"; | |
} | |
this(var1, var2); | |
} | |
public Hero() { | |
this((String)null, (String)null, 3, (DefaultConstructorMarker)null); | |
} | |
@NotNull | |
public final String component1() { | |
return this.name; | |
} | |
@NotNull | |
public final String component2() { | |
return this.weapon; | |
} | |
@NotNull | |
public final Hero copy(@NotNull String name, @NotNull String weapon) { | |
Intrinsics.checkParameterIsNotNull(name, "name"); | |
Intrinsics.checkParameterIsNotNull(weapon, "weapon"); | |
return new Hero(name, weapon); | |
} | |
// $FF: synthetic method | |
// $FF: bridge method | |
@NotNull | |
public static Hero copy$default(Hero var0, String var1, String var2, int var3, Object var4) { | |
if ((var3 & 1) != 0) { | |
var1 = var0.name; | |
} | |
if ((var3 & 2) != 0) { | |
var2 = var0.weapon; | |
} | |
return var0.copy(var1, var2); | |
} | |
public String toString() { | |
return "Hero(name=" + this.name + ", weapon=" + this.weapon + ")"; | |
} | |
public int hashCode() { | |
return (this.name != null ? this.name.hashCode() : 0) * 31 + (this.weapon != null ? this.weapon.hashCode() : 0); | |
} | |
public boolean equals(Object var1) { | |
if (this != var1) { | |
if (var1 instanceof TAUSFrameLayoutManager.Hero) { | |
TAUSFrameLayoutManager.Hero var2 = (TAUSFrameLayoutManager.Hero)var1; | |
if (Intrinsics.areEqual(this.name, var2.name) && Intrinsics.areEqual(this.weapon, var2.weapon)) { | |
return true; | |
} | |
} | |
return false; | |
} else { | |
return true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment