⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 issame.java

📁 JUNIT1.4源文件等等 源文件等等 源文件等等 源文件
💻 JAVA
字号:
/*  Copyright (c) 2000-2006 hamcrest.org */package org.hamcrest.core;import org.hamcrest.Description;import org.hamcrest.Matcher;import org.hamcrest.Factory;import org.hamcrest.BaseMatcher;/** * Is the value the same object as another value? */public class IsSame<T> extends BaseMatcher<T> {    private final T object;    public IsSame(T object) {        this.object = object;    }    public boolean matches(Object arg) {        return arg == object;    }    public void describeTo(Description description) {        description.appendText("same(") .appendValue(object) .appendText(")");    }    /**     * Creates a new instance of IsSame     *     * @param object The predicate evaluates to true only when the argument is     *               this object.     */    @Factory    public static <T> Matcher<T> sameInstance(T object) {        return new IsSame<T>(object);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -