net.sf.mmm.util.validation.base.number.ValidatorBuilderLong Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-util-validation Show documentation
Show all versions of mmm-util-validation Show documentation
This project provides advanced validation support.
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.validation.base.number;
import java.util.Collection;
import net.sf.mmm.util.validation.base.AbstractValidator;
import net.sf.mmm.util.validation.base.ObjectValidatorBuilder;
import net.sf.mmm.util.value.api.Range;
/**
* The {@link ObjectValidatorBuilder builder} of {@link AbstractValidator} for {@link Long} values.
*
* @param the generic type of the {@link #and() parent builder}.
*
* @author hohwille
* @since 7.1.0
*/
public class ValidatorBuilderLong
extends NumberValidatorBuilder> {
/**
* The constructor.
*
* @param parent the {@link #and() parent} builder.
*/
public ValidatorBuilderLong(PARENT parent) {
super(parent);
}
/**
* @see #range(Range)
*
* @param min the minimum {@link Collection#size() size} allowed.
* @param max the maximum {@link Collection#size() size} allowed.
* @return this build instance for fluent API calls.
*/
public ValidatorBuilderLong range(long min, long max) {
return range(new Range<>(Long.valueOf(min), Long.valueOf(max)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy