All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.davidmoten.rx.internal.operators.NullSentinel Maven / Gradle / Ivy

package com.github.davidmoten.rx.internal.operators;

public final class NullSentinel {

	private NullSentinel() {
		// prevent instantiation
	}

	private static final Object NULL_SENTINEL = new Object();

	public static boolean isNullSentinel(Object o) {
		return o == NULL_SENTINEL;
	}

	@SuppressWarnings("unchecked")
	public static  T instance() {
		return (T) NULL_SENTINEL;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy