private fun valEquals(o1: Any?, o2: Any?): Boolean { return if (o1 == null) o2 == null else o1 == o2 }
Test two values for equality . Differs from o1.equals ( o2 ) only in that it copes with with < tt > null < /tt > o1 properly .