Examples of min()


Examples of org.carrot2.util.attribute.constraint.IntRange.min()

        }
        else
        {
            final IntRange r = NumberUtils.getIntRange(descriptor);

            hasNegativeValues = (r == null || r.min() < 0);
            unbounded = (r == null || NumberUtils.isUnbounded(r));
        }

        final IAttributeEditor delegate;
        if (unbounded)
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.CountConstraint.min()

    @Override
    protected void facts( final SortedSet<String> facts )
    {
        final CountConstraint constraint = context( PropertyDef.class ).getAnnotation( CountConstraint.class );
        final int min = constraint.min();
        final int max = constraint.max();
       
        if( min == 1 )
        {
            facts.add( atLeastOneStatement.text() );
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.NumericRange.min()

        final PropertyDef property = context( PropertyDef.class );
        final Class<?> type = property.getTypeClass();
        final NumericRange rangeConstraintAnnotation = property.getAnnotation( NumericRange.class );
        final MasterConversionService converter = property.service( MasterConversionService.class );

        final String minStr = rangeConstraintAnnotation.min();
       
        if( minStr != null )
        {
            this.min = ( minStr.length() > 0 ? (Comparable) converter.convert( minStr, type ) : null );
        }
View Full Code Here

Examples of org.elasticsearch.search.facet.statistical.StatisticalFacet.min()

            StatisticalFacet facet = searchResponse.facets().facet("stats1");
            assertThat(facet.name(), equalTo(facet.name()));
            assertThat(facet.count(), equalTo(2l));
            assertThat(facet.total(), equalTo(3d));
            assertThat(facet.min(), equalTo(1d));
            assertThat(facet.max(), equalTo(2d));
            assertThat(facet.mean(), equalTo(1.5d));
            assertThat(facet.sumOfSquares(), equalTo(5d));

            facet = searchResponse.facets().facet("stats2");
View Full Code Here

Examples of org.hibernate.validator.Length.min()

            formField.setMin(size.min());
            formField.setMax(size.max());
        }
        if (field.getAnnotation(Length.class) != null) {
            Length length = field.getAnnotation(Length.class);
            formField.setMin(length.min());
            formField.setMax(length.max());
        }
        if (field.getAnnotation(Pattern.class) != null) {
            formField.setRegExp(field.getAnnotation(Pattern.class).regex());
        }
View Full Code Here

Examples of org.hibernate.validator.Range.min()

            return regexValidator;
        } else if (annotationClass.equals(Range.class)) {
            Range range = (Range) annotation;
            LongRangeValidator longRangeValidator = new LongRangeValidator();
            longRangeValidator.setMaximum(range.max());
            longRangeValidator.setMinimum(range.min());
            LongRangeClientValidator longRangeClientValidator = new LongRangeClientValidator();
            longRangeClientValidator.setLongRangeValidator(longRangeValidator);
            return longRangeClientValidator;
        } else if (annotationClass.equals(Max.class)) {
            Max max = (Max) annotation;
View Full Code Here

Examples of org.hibernate.validator.Size.min()

            formField.setRequired(true);
            formField.setMin(1);
        }
        if (field.getAnnotation(Size.class) != null) {
            Size size = field.getAnnotation(Size.class);
            formField.setMin(size.min());
            formField.setMax(size.max());
        }
        if (field.getAnnotation(Length.class) != null) {
            Length length = field.getAnnotation(Length.class);
            formField.setMin(length.min());
View Full Code Here

Examples of org.jboss.managed.api.annotation.ConstraintsPopulatorFactory.min()

                  else
                     cpf = moCPF;
                  if(factoryClass != null)
                  {
                     ManagedPropertyConstraintsPopulatorFactory mpcpf = factoryClass.newInstance();
                     ManagedPropertyConstraintsPopulator populator = mpcpf.newInstance(cpf.min(), cpf.max(), cpf.legalValues(), cpf.args());
                     if (populator != null)
                        populator.populateManagedProperty(clazz, propertyInfo, fields);
                  }
               }
               catch(Exception e)
View Full Code Here

Examples of org.jquantlib.math.statistics.GenericSequenceStatistics.min()

                       + "wrong sum of weights\n"
                       + "    calculated: " + ss.weightSum() + "\n"
                       + "    expected:   " + expected);

        expected = data.min();
        calculated = ss.min();
        for (i=0; i<dimension; i++) {
            if (calculated.get(i) != expected)
                fail("SequenceStatistics<" + name + ">: "
                           + (i+1) + " dimension: "
                           + "wrong minimum value\n"
View Full Code Here

Examples of org.springmodules.validation.bean.conf.loader.annotation.handler.Length.min()

        String applyIfValang = null;

        if (a instanceof Length) {
            Length annotation = (Length) a;
            errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
            min = annotation.min();
            max = annotation.max();
            applyIfValang = valangToJS(annotation.applyIf());
        } else if (a instanceof Size) {
            Size annotation = (Size) a;
            errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.