Examples of min()


Examples of com.volantis.testtools.mock.method.Occurrences.min()

        occurrences.fixed(number);
    }

    public MaxOcurrences min(int minimum) {
        Occurrences occurrences = getOccurences();
        return occurrences.min(minimum);
    }

    public void optional() {
        Occurrences occurrences = getOccurences();
        occurrences.optional();
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.translator.A4Solution.min()

         sig2type.put(Sig.UNIV, AlloyType.UNIV);
         sig2type.put(Sig.SIGINT, AlloyType.INT);
         sig2type.put(Sig.SEQIDX, AlloyType.SEQINT);
         sig2type.put(Sig.STRING, AlloyType.STRING);
         ts.put(AlloyType.SEQINT, AlloyType.INT);
         for(int i=sol.min(), max=sol.max(), maxseq=sol.getMaxSeq(); i<=max; i++) {
            AlloyAtom at = new AlloyAtom(i>=0 && i<maxseq ? AlloyType.SEQINT : AlloyType.INT, i, ""+i);
            atom2sets.put(at, new LinkedHashSet<AlloySet>());
            string2atom.put(""+i, at);
         }
         for(Sig s:sol.getAllReachableSigs()) if (!s.builtin && s instanceof PrimSig) sig((PrimSig)s);
View Full Code Here

Examples of etch.util.core.nio.ByteBufferPool.min()

  @Test
  public void construct7() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 1, 2, 3, 4, 5 );
    assertEquals( 1, p.bufferSize() );
    assertEquals( 2, p.min() );
    assertEquals( 3, p.limit() );
    assertEquals( 4, p.interval() );
    assertEquals( 5, p.length() );
    p.shutdown();
  }
View Full Code Here

Examples of etch.util.core.nio.History.min()

  /** @throws Exception */
  @Test
  public void construct1() throws Exception
  {
    History h = new History( 1, 2, 3 );
    assertEquals( 1, h.min() );
    assertEquals( 2, h.limit() );
    assertEquals( 3, h.length() );
  }

  /** @throws Exception */
 
View Full Code Here

Examples of fuzzy4j.util.SimpleInterval.min()

        List<Double> nec = new ArrayList<Double>();
        List<Double> pos = new ArrayList<Double>();

        // border cases
        updateNecPos(nec, pos, new Point(overlap.min(), A.apply(overlap.min())), B);
        updateNecPos(nec, pos, new Point(overlap.max(), A.apply(overlap.max())), B);

        for (Point p : A.points)
            updateNecPos(pos, nec, p, B);
View Full Code Here

Examples of gnu.trove.list.TIntList.min()

        list2.add( 1 );
        list2.add( 2 );
        list2.add( 5 );
        list2.add( 4 );
        assertEquals( 5, list2.max() );
        assertEquals( 1, list2.min() );

        try {
            TIntList list3 = new TIntLinkedList();
            list3.min();
            fail( "Expected IllegalStateException" );
View Full Code Here

Examples of hudson.model.Fingerprint.RangeSet.min()

            // should not happen
            LOGGER.warning("Range set is empty. Upstream " + upstreamBuild + ", downstream " + downstreamBuild);
            return false;
        }
       
        if (rangeSet.min() == downstreamBuild.getNumber()) {
            return true;
        }
        return false;
    }
View Full Code Here

Examples of java.math.BigDecimal.min()

    public BigDecimal typedReduce(Key key, Iterator<BigDecimal> iter) {
      if (!iter.hasNext())
        return null;
      BigDecimal min = iter.next();
      while (iter.hasNext()) {
        min = min.min(iter.next());
      }
      return min;
    }
  }
 
View Full Code Here

Examples of java.math.BigInteger.min()

            @Override
            public BigInteger collate(Iterable<Map.Entry<Key, BigInteger>> values) {
                BigInteger min = null;
                for (Map.Entry<Key, BigInteger> entry : values) {
                    BigInteger value = entry.getValue();
                    min = min == null ? value : value.min(min);
                }
                return min;
            }
        };
    }
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.min()

    Root<Customer> customerRoot = criteria.from( Customer.class );
    Join<Customer, Order> orderJoin = customerRoot.join( Customer_.orders );
    criteria.select( customerRoot );
    Subquery<Double> subCriteria = criteria.subquery( Double.class );
    Root<Order> subqueryOrderRoot = subCriteria.from( Order.class );
    subCriteria.select( builder.min( subqueryOrderRoot.get( Order_.totalPrice ) ) );
    criteria.where( builder.equal( orderJoin.get( "totalPrice" ), builder.all( subCriteria ) ) );
    em.createQuery( criteria ).getResultList();

    em.getTransaction().commit();
    em.close();
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.