Examples of min()


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

        StringBuffer sb = new StringBuffer();
        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.min()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    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.min()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    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.min()

            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.terasology.math.Region3i.min()

    }

    @Override
    public ChunkViewCore getSubviewAroundBlock(Vector3i blockPos, int extent) {
        Region3i region = TeraMath.getChunkRegionAroundWorldPos(blockPos, extent);
        return createWorldView(region, new Vector3i(-region.min().x, -region.min().y, -region.min().z));
    }

    @Override
    public ChunkViewCore getSubviewAroundChunk(Vector3i chunkPos) {
        Region3i region = Region3i.createFromCenterExtents(chunkPos, ChunkConstants.LOCAL_REGION_EXTENTS);
View Full Code Here

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

        int size = screen.ask("Indiquez la taille du tableau : ", Input.UInteger);
        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 : ");
View Full Code Here

Examples of umontreal.iro.lecuyer.simevents.Accumulate.min()

    str.append (8, (int)(statUtil.min()+0.5));
    str.append (11, (int)(statUtil.max()+0.5));
    str.append (12, 3, 2, statUtil.average());
    str.append (PrintfFormat.NEWLINE + "   Queue Size  ");
    str.append (8, (int)(sizeWait.min()+0.5));
    str.append (11, (int)(sizeWait.max()+0.5));
    str.append (12, 3, 2, sizeWait.average());

    str.append (PrintfFormat.NEWLINE + "   Wait    ");
    str.append (12, 3, 2, sojWait.min()).append (' ');
View Full Code Here

Examples of umontreal.iro.lecuyer.stat.Tally.min()

    str.append (8, (int)(sizeWait.min()+0.5));
    str.append (11, (int)(sizeWait.max()+0.5));
    str.append (12, 3, 2, sizeWait.average());

    str.append (PrintfFormat.NEWLINE + "   Wait    ");
    str.append (12, 3, 2, sojWait.min()).append (' ');
    str.append (10, 3, 2, sojWait.max()).append (' ');
    str.append (11, 3, 2, sojWait.average()).append (' ');
    str.append (10, 3, 2, sojWait.standardDeviation());
    str.append (10, sojWait.numberObs());
View Full Code Here

Examples of util.iterators.DisposableRangeIterator.min()

     */
    public void filterFromVarToVar(IntVar var1, IntVar var2) throws ContradictionException {
        DisposableRangeIterator it = var1.getRangeIterator(true);
        try {
            while (it.hasNext()) {
                int from = it.min();
                int to = it.max();
                for (int value = from; value <= to; value++)
                    if (!var2.contains(value - cste) && !var2.contains(value + cste)) {
                        var1.removeValue(value, aCause);
                    }
View Full Code Here

Examples of util.iterators.DisposableRangeIterator.min()

        } else {
            if (v.hasEnumeratedDomain()) {
                DisposableRangeIterator rit = v.getRangeIterator(true);
                try {
                    while (rit.hasNext()) {
                        int from = rit.min();
                        int to = rit.max();
                        for (int value = from; value <= to; value++) {
                            if (value != (val - cste) && value != (val + cste)) {
                                v.removeValue(value, aCause);
                            }
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.