All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.lang.JTranscObjects Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
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