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

📄 isnull.java

📁 JUNIT1.4源文件等等 源文件等等 源文件等等 源文件
💻 JAVA
字号:
/*  Copyright (c) 2000-2006 hamcrest.org */package org.hamcrest.core;import static org.hamcrest.core.IsNot.not;import org.hamcrest.Description;import org.hamcrest.Matcher;import org.hamcrest.Factory;import org.hamcrest.BaseMatcher;/** * Is the value null? */public class IsNull<T> extends BaseMatcher<T> {    public boolean matches(Object o) {        return o == null;    }    public void describeTo(Description description) {        description.appendText("null");    }    /**     * Matches if value is null.     */    @Factory    public static <T> Matcher<T> nullValue() {        return new IsNull<T>();    }    /**     * Matches if value is not null.     */    @Factory    public static <T> Matcher<T> notNullValue() {        return not(IsNull.<T>nullValue());    }    /**     * Matches if value is null. With type inference.     */    @Factory    public static <T> Matcher<T> nullValue(@SuppressWarnings("unused") Class<T> type) {        return nullValue();    }    /**     * Matches if value is not null. With type inference.     */    @Factory    public static <T> Matcher<T> notNullValue(@SuppressWarnings("unused") Class<T> type) {        return notNullValue();    }}

⌨️ 快捷键说明

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