Created
May 10, 2023 09:03
-
-
Save Sanne/a63a56df56545d3d81819f0abf06af65 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 void compareAndSerialize(Object o) { | |
if (o instanceof Comparable) { | |
useComparable((Comparable) o); | |
} | |
if (o instanceof Serializable) { | |
useSerializable((Serializable) o); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment