
org.bitbucket.cowwoc.preconditions.ClassPreconditions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of preconditions Show documentation
Show all versions of preconditions Show documentation
A Java library for enforcing preconditions.
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