home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-09-10 | 736 b | 28 lines |
- // Copyright(c) 1996 ObjectSpace, Inc.
- // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
-
- package jgl;
-
- /**
- * NotIdenticalTo is a binary predicate that returns true if the first operand
- * is not the same object second operand using the standard Java != operator.
- * <p>
- * @version 1.1
- * @author ObjectSpace, Inc.
- */
-
- public final class NotIdenticalTo implements BinaryPredicate
- {
- /**
- * Compare two objects for non-identity.
- * @param first The first operand.
- * @param second The second operand.
- * @return true if the operands are not the same object according to the !=.
- */
- public boolean execute( Object first, Object second )
- {
- return first != second;
- }
- }
-
-