Examples of Values


Examples of com.badlogic.gdx.utils.IntFloatMap.Values

  /** Returns an iterator for the values in the map. Remove is supported. Note that the same iterator instance is returned each
   * time this method is called. Use the {@link Entries} constructor for nested or multithreaded iteration. */
  public Values values () {
    if (values1 == null) {
      values1 = new Values(this);
      values2 = new Values(this);
    }
    if (!values1.valid) {
      values1.reset();
      values1.valid = true;
      values2.valid = false;
View Full Code Here

Examples of com.facebook.presto.sql.tree.Values

    public void testValues()
    {
        assertStatement("VALUES ('a', 1, 2.2), ('b', 2, 3.3)",
                new Query(
                        Optional.<With>absent(),
                        new Values(ImmutableList.of(
                                new Row(ImmutableList.<Expression>of(
                                        new StringLiteral("a"),
                                        new LongLiteral("1"),
                                        new DoubleLiteral("2.2")
                                )),
                                new Row(ImmutableList.<Expression>of(
                                        new StringLiteral("b"),
                                        new LongLiteral("2"),
                                        new DoubleLiteral("3.3")
                                ))
                        )),
                        ImmutableList.<SortItem>of(),
                        Optional.<String>absent(),
                        Optional.<Approximate>absent()));

        assertStatement("SELECT * FROM (VALUES ('a', 1, 2.2), ('b', 2, 3.3))",
                new Query(
                        Optional.<With>absent(),
                        new QuerySpecification(
                                selectList(new AllColumns()),
                                ImmutableList.<Relation>of(new TableSubquery(
                                        new Query(
                                                Optional.<With>absent(),
                                                new Values(ImmutableList.of(
                                                        new Row(ImmutableList.<Expression>of(
                                                                new StringLiteral("a"),
                                                                new LongLiteral("1"),
                                                                new DoubleLiteral("2.2")
                                                        )),
View Full Code Here

Examples of com.redhat.gss.redhat_support_lib.parsers.Values

      MalformedURLException {

    WebResource webResource = connectionManager.getConnection().resource(
        connectionManager.getConfig().getUrl()
            + "/rs/values/case/severity");
    Values values = get(webResource, Values.class);
    return values.getValue();
  }
View Full Code Here

Examples of com.taobao.tddl.common.monitor.SnapshotValuesOutputCallBack.Values

    ConcurrentHashMap<String, Values> tempMap = new ConcurrentHashMap<String, Values>();
    for (SnapshotValuesOutputCallBack callBack : snapshotValueCallBack) {
      ConcurrentHashMap<String, Values> values = callBack.getValues();
      Map<String, Values> copiedMap = new HashMap<String, Values>(values);
      for (Entry<String, Values> entry : copiedMap.entrySet()) {
        Values value = tempMap.get(entry.getKey());
        if (null == value) {
          Values newValues = new Values();
          value = tempMap.putIfAbsent(entry.getKey(), newValues);
          if (value == null) {
            value = newValues;
          }
        }
View Full Code Here

Examples of com.zappos.model.JsonFacetObj.Values

    ArrayList<Double> searchlist = new ArrayList<Double>();
    Iterator<Values> it = facetvalues.iterator();

    //the objects copied to a hash map with cost as key and count as value. The costs are also copied into an array list which will be used later
    while(it.hasNext()){
      Values temp = it.next();
      facethash.put(Double.parseDouble(temp.getName()), temp.getCount());
      searchlist.add(Double.parseDouble(temp.getName()));
    }

    int index = searchlist(averagecost, searchlist); //This function is used to retrieve the index of cost that is similar to the user's average product cost
    System.out.println("index is " + index);
    System.out.println(searchlist.get(index));
View Full Code Here

Examples of eu.planets_project.pp.plato.model.Values

            for (Plan p : projectList) {
                log.info("deleting plan "+p.getPlanProperties().getName());
                log.debug("removing value scale linkage...");
                for (Leaf l: p.getTree().getRoot().getAllLeaves()) {
                    for (Alternative a: p.getAlternativesDefinition().getAlternatives()) {
                        Values values = l.getValues(a.getName());
                        if (values != null) {
                            for (Value v : values.getList()) {
                                if (v!= null) {
                                    v.setScale(null);
                                }
                            }
                        }
View Full Code Here

Examples of eu.scape_project.planning.model.Values

        em.persist(lStored);
        em.getTransaction().commit();

        lStored = em.find(Leaf.class, l.getId());
        for (Alternative a : alternatives) {
            Values values = lStored.getValues(a.getName());
            assertEquals(4, ((PositiveIntegerValue) values.getValue(0)).getValue());
            assertEquals(1, ((PositiveIntegerValue) values.getValue(1)).getValue());
        }
        lStored.initValues(alternatives, 5, true);
        for (Alternative a : alternatives) {
            for (int idx = 2; idx <= 4; idx++) {
                Value v = lStored.getValues(a.getName()).getList().get(idx);
                ((PositiveIntegerValue) v).setValue(idx+1);
            }
        }
        em.getTransaction().begin();
        em.persist(lStored);
        em.getTransaction().commit();

        em.close();
        // check order with new connection, this time don't recreate schema
        em = newConnection();
        assertNotNull(em);
        em.getTransaction().begin();
       
        lStored = em.find(Leaf.class, l.getId());
        for (Alternative a : alternatives) {
            Values values = lStored.getValues(a.getName());
            assertEquals(4, ((PositiveIntegerValue) values.getValue(0)).getValue());
            assertEquals(1, ((PositiveIntegerValue) values.getValue(1)).getValue());
            assertEquals(3, ((PositiveIntegerValue) values.getValue(2)).getValue());
            assertEquals(4, ((PositiveIntegerValue) values.getValue(3)).getValue());
            assertEquals(5, ((PositiveIntegerValue) values.getValue(4)).getValue());
       
       
        assertEquals("Removed values (orphans) should be automatically deleted", 15,
            ((Long)em.createQuery("select count(*) from Value").getSingleResult()).longValue());
       
View Full Code Here

Examples of fiftyone.mobile.detection.entities.Values

     * @return Array of the values associated with the property, or null if the
     * property does not exist
     * @throws IOException
     */
    public Values getValues(Property property) throws IOException {
        Values value = null;

        if (property != null) {
            // Get the property value from the profile returned
            // from the match.
            for (Profile profile : getProfiles()) {
View Full Code Here

Examples of jsynoptic.plugins.java3d.Values

    public Tuple3fDataEdit(Tuple3fAnimator object) {
        super(object, Tuple); // TODO tuple kind
    }

    public Values getOldValues() {
        return new Values(_oldValue);
    }
View Full Code Here

Examples of jsynoptic.plugins.java3d.Values

        }
        _editor = (Tuple3fDataEdit) editor;
        if (_editor != null) {
            _editor.addListener(this);

            Values v = _editor.getOldValues();
            _table.setModel(new Model(v));
            _newValue = false;
        }
    }
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.