public static void same(Object obj1, Object obj2, Supplier<String> message) {
    if (obj1 != obj2) {
      throw new IdentityException(message.get());
    }
  }
public static void same ( Object obj1 , Object obj2 , Supplier < String > message ) { if ( obj1 != obj2 ) { throw new IdentityException ( message . get ( ) ) ; } }
Asserts that two {@link Object objects} are the same {@link Object} as determined by the identity comparison.

The assertion holds if and only if the two {@link Object objects} are the same {@link Object} in memory.

@param obj1 {@link Object left operand} in the identity comparison.
@param obj2 {@link Object right operand} in the identity comparison.
@param message {@link Supplier} containing the message used in the {@link IdentityException} thrown
if the assertion fails.
@throws org.cp.elements.lang.IdentityException if the two {@link Object objects} are not the same.
@see java.lang.Object