📄 equal.java
字号:
package org.jutil.predicate;/** * <p>A class of predicate that check whether or not the given argument * equals <a href="Equal.html#getObject()"><code>getObject()</code></a>.</p> * * <center><img src="doc-files/Equal.png"/></center> * * @path $Source: /cvsroot/org-jutil/jutil.org/src/org/jutil/predicate/Equal.java,v $ * @version $Revision: 1.2 $ * @date $Date: 2002/07/20 19:11:31 $ * @state $State: Exp $ * @author Marko van Dooren * @release $Name: $ */public class Equal extends PrimitiveTotalPredicate { /* The revision of this class */ public final static String CVS_REVISION ="$Revision: 1.2 $"; /** * <p>Initialize a new Equal with the given object</p> * * @param object * The object that will be used for the equality check. */ /*@ @ public behavior @ @ pre object != null; @ @ post getObject() == object; @*/ public Equal(Object object) { $object = object; } /** * Return the object of this Equal. */ /*@ @ public behavior @ @ post \result != null; @*/ public Object getObject() { return $object; } /*@ @ also public behavior @ @ post \result == getObject().equals(object); @*/ public boolean eval(Object object) { return $object.equals(object); } /** * The object to be used for the equality test. */ /*@ @ private invariant $object != null; @*/ private Object $object;}/* * <copyright>Copyright (C) 1997-2001. This software is copyrighted by * the people and entities mentioned after the "@author" tags above, on * behalf of the JUTIL.ORG Project. The copyright is dated by the dates * after the "@date" tags above. All rights reserved. * This software is published under the terms of the JUTIL.ORG Software * License version 1.1 or later, a copy of which has been included with * this distribution in the LICENSE file, which can also be found at * http://org-jutil.sourceforge.net/LICENSE. This software is distributed * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the JUTIL.ORG Software License for more details. For more information, * please see http://org-jutil.sourceforge.net/</copyright> */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -