Skip to content

Instantly share code, notes, and snippets.

@florina-muntenescu
Last active January 21, 2020 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florina-muntenescu/29853fed024706ddcb17695bdbb121d6 to your computer and use it in GitHub Desktop.
Save florina-muntenescu/29853fed024706ddcb17695bdbb121d6 to your computer and use it in GitHub Desktop.
Inline classes - equality
/* Copyright 2019 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
public final class DoggoId implements Id {
public static boolean equals_impl/* $FF was: equals-impl*/(long var0, @Nullable Object var2) {
if (var2 instanceof DoggoId) {
long var3 = ((DoggoId)var2).unbox-impl();
if (var0 == var3) {
return true;
}
}
return false;
}
public static final boolean equals_impl0/* $FF was: equals-impl0*/(long p1, long p2) {
return p1 == p2;
}
public boolean equals(Object var1) {
return equals-impl(this.id, var1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment