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

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

There is a newer version: 1.29
Show 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;

import java.net.URI;

/**
 * An implementation of UriPreconditions that does nothing.
 * 

* @author Gili Tzabari */ enum NoOpUriPreconditions implements UriPreconditions { INSTANCE; @Override public UriPreconditions isAbsolute() { return this; } @Override public NoOpUriPreconditions usingException(Class exception) { return this; } @Override public UriPreconditions isEqualTo(URI value) { return this; } @Override public UriPreconditions isInstanceOf(Class type) { return this; } @Override public UriPreconditions isNull() { return this; } @Override public UriPreconditions isNotNull() { return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy