
org.bitbucket.cowwoc.preconditions.NoOpCollectionSizePreconditions 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 2015 Gili Tzabari.
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package org.bitbucket.cowwoc.preconditions;
/**
* An implementation of CollectionSizePreconditions that does nothing.
*
* @author Gili Tzabari
*/
final class NoOpCollectionSizePreconditions
extends AbstractNoOpNumberPreconditions
implements CollectionSizePreconditions
{
public static final NoOpCollectionSizePreconditions INSTANCE
= new NoOpCollectionSizePreconditions();
@Override
public CollectionSizePreconditions usingException(Class extends RuntimeException> exception)
{
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy