Example usage for android.support.v4.util Preconditions checkNotNull

List of usage examples for android.support.v4.util Preconditions checkNotNull

Introduction

In this page you can find the example usage for android.support.v4.util Preconditions checkNotNull.

Prototype

public static @NonNull <T> T checkNotNull(final T reference) 

Source Link

Document

Ensures that an object reference passed as a parameter to the calling method is not null.

Usage

From source file:android.support.text.emoji.EmojiProcessor.java

/**
 * Set the GlyphChecker instance used by EmojiProcessor. Used for testing.
 *//*ww w. j  ava 2 s  .  c om*/
void setGlyphChecker(@NonNull final GlyphChecker glyphChecker) {
    Preconditions.checkNotNull(glyphChecker);
    mGlyphChecker = glyphChecker;
}