com.jtransc.lang.JTranscObjects Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt-core Show documentation
Show all versions of jtransc-rt-core Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.lang;
@SuppressWarnings("RedundantIfStatement")
public class JTranscObjects {
static public String toStringOrNull(Object obj) {
return (obj != null) ? obj.toString() : null;
}
static public boolean equalsShape(Object a, Object b) {
if (a == b) return true;
if (a == null || b == null) return false;
if (a.getClass() != b.getClass()) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy