Examples of max()


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

                  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.max()

                           + "    calculated: " + calculated.get(i) + "\n"
                           + "    expected:   " + expected);
        }

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

Examples of org.mindswap.pellet.DependencySet.max()

        DependencySet ds1 = entry.getValue();
        boolean allIndependent = isIndependent && ds1.isIndependent() && ds2.isIndependent();
        if( allIndependent ) {
          if( log.isLoggable( Level.FINE ) )
            log.fine( roots[root] + " has " + c + " " + roots[otherRoot]
                + " has negation " + ds1.max() + " " + ds2.max() );
          return Bool.FALSE;
        }
        else {
          if( log.isLoggable( Level.FINE ) )
            log.fine( roots[root] + " has " + c + " " + roots[otherRoot]
View Full Code Here

Examples of org.spout.math.vector.Vector3f.max()

      velocity = entity.getPhysics().getMovementVelocity(); //TODO: Check if it's alright.
    } else {
      velocity = Vector3f.ZERO;
    }

    velocity = velocity.max(factor.mul(-1)).min(factor);

    double s = 8000d;
    speedX = (short) (velocity.getX() * s);
    speedY = (short) (velocity.getY() * s);
    speedZ = (short) (velocity.getZ() * s);
 
View Full Code Here

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

        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());
            min = annotation.min();
View Full Code Here

Examples of org.springmodules.validation.bean.conf.loader.annotation.handler.Range.max()

        sb.append(" function() {return this.between(this.getPropertyValue(");
        sb.append(wrapAndEscapeJsString(fieldName));// field
        sb.append("), (new Array(");
        sb.append(annotation.min());
        sb.append(',');
        sb.append(annotation.max());
        sb.append(") ))}");

        return buildBasicRule(fieldName, errMsg, sb.toString(), applyIfValang, a);
    }
}
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateIntegerRange.max()

  {
    ValidateIntegerRange annotation = (ValidateIntegerRange) annot;
    IntegerRangeValidator validator = new IntegerRangeValidator();

    validator.setMin(annotation.min());
    validator.setMax(annotation.max());

    List<Object> parameters = new ArrayList<Object>();
    parameters.add(annotation.min());
    parameters.add(annotation.max());
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateLongRange.max()

  {
    ValidateLongRange annotation = (ValidateLongRange) annot;
    LongRangeValidator validator = new LongRangeValidator();

    validator.setMin(annotation.min());
    validator.setMax(annotation.max());

    List<Object> parameters = new ArrayList<Object>();
    parameters.add(annotation.min());
    parameters.add(annotation.max());
View Full Code Here

Examples of org.terasology.editor.EditorRange.max()

            CopyStrategyLibrary copyStrategies = CoreRegistry.get(CopyStrategyLibrary.class);
            ClassMetadata<T, ?> classMetadata = new DefaultClassMetadata<>(new SimpleUri(), (Class<T>) target.getClass(), reflectFactory, copyStrategies);
            for (Field field : getAllFields(target.getClass(), and(withAnnotation(EditorRange.class), or(withType(Float.TYPE), withType(Float.class))))) {
                EditorRange range = field.getAnnotation(EditorRange.class);
                FieldMetadata<T, Float> fieldMetadata = (FieldMetadata<T, Float>) classMetadata.getField(field.getName());
                Property property = new FloatProperty(target, fieldMetadata, range.min(), range.max());
                properties.add(property);
            }
        } catch (NoSuchMethodException e) {
            logger.error("Cannot provide provide inspection for {}, does not have a default constructor", target.getClass());
        }
View Full Code Here

Examples of org.tp.exos.tab.MyTab.max()

        MyTab t = new MyTab(size);
        screen.show("Contenu du tableau : ");
        screen.show(t);
        screen.show("moyenne des elements : " + t.moyenne());
        screen.show("element min : " + t.min());
        screen.show("element max : " + t.max());
        screen.show("decalage circulaire a droite : ");
        t.rightShift();
        screen.show(t);
        screen.show("contenu trie : ");
        t.tri();
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.