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

org.bitbucket.cowwoc.preconditions.ClassPreconditions Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2013 Gili Tzabari.
 * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
 */
package org.bitbucket.cowwoc.preconditions;

/**
 * Verifies preconditions of a {@link Class} parameter.
 * 

* @param the type of the class * @author Gili Tzabari */ public interface ClassPreconditions extends ObjectPreconditions, Class> { /** * Ensures that the parameter is a superclass or super-interface of a class. *

* @param type the class to compare to * @return this * @throws NullPointerException if {@code type} is null * @throws IllegalArgumentException if {@code parameter} is not a supertype of {@code type} */ ClassPreconditions isSupertypeOf(Class type) throws NullPointerException, IllegalArgumentException; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy