Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (C) 2012 FoxLabs
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.foxlabs.validation.constraint;

This class provides ConstraintAggregation implementation that is conjunction of the encapsulated constraints. In other words this class represents logical AND operator.

public final class ConstraintConjunction<V> extends ConstraintAggregation<V> {
Constructs a new ConstraintConjunction with the specified value type and array of constraints.

type The type of value to be validated.
constraints Array of constraints to be used for validation of a value.
java.lang.IllegalArgumentException if the specified type is null or the specified array of constraints is null or empty or contains null elements.
    ConstraintConjunction(Class<?> type, Constraint<? super V>[] constraints) {
New to GrepCode? Check out our FAQ X