Created
May 22, 2020 00:50
-
-
Save wataru218/31acb42d7a3cefa20171b4778b80a599 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 class ObjectUtils { | |
public static boolean equalsAny(Object obj, Object... others) { | |
if (others != null) { | |
for (Object other : others) { | |
if (Objects.equals(obj, other)) { | |
return true; | |
} | |
} | |
} | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment