Examples of values()


Examples of com.vtence.molecule.Session.values()

        data.clear();

        assertThat("saved session", saved, not(Matchers.sameInstance(data)));
        assertThat("saved session expiration time", saved.maxAge(), equalTo(maxAge));
        assertThat("saved session keys", saved.keys(), Matchers.<Object>contains("a", "b", "c"));
        assertThat("saved session values", saved.values(), Matchers.<Object>contains("Alice", "Bob", "Chris"));
    }

    @Test public void
    loadsSessionContentDefensively() {
        Session data = new Session();
View Full Code Here

Examples of com.webobjects.monitor._private.MInstance.values()

        if (_InstanceArray != null) {
            int instanceCount = _InstanceArray.count();
            NSMutableArray instanceArray = new NSMutableArray(instanceCount);
            for (int i = 0; i < instanceCount; i++) {
                MInstance anInst = (MInstance) _InstanceArray.objectAtIndex(i);
                instanceArray.addObject(anInst.values());
            }
            requestTypeDict.takeValueForKey(instanceArray, "instanceArray");
        }

        updateWotaskd.takeValueForKey(requestTypeDict, requestType);
View Full Code Here

Examples of de.anomic.server.serverObjects.values()

            }

            // check for cross site scripting - attacks in request arguments
            if (args != null && argc > 0) {
                // check all values for occurrences of script values
                final Iterator<String> e = args.values().iterator(); // enumeration of values
                String val;
                while (e.hasNext()) {
                    val = e.next();
                    if ((val != null) && (val.indexOf("<script") >= 0) && !path.equals("/Crawler_p.html")) {
                        // deny request
View Full Code Here

Examples of de.fhg.igd.mongomvcc.helper.IdMap.values()

    }

    //ask MongoDB for objects with the given OIDs
    if (objs.size() == 1) {
      //shortcut for one object
      return createCursor(_delegate.find(new BasicDBObject(OID, objs.values()[0])), null);
    } else {
      DBObject qo = new BasicDBObject();
      qo.putAll(_branch.getQueryObject());
      return createCursor(_delegate.find(qo), new OIDInIndexFilter());
    }
View Full Code Here

Examples of dovetaildb.ResultMap.values()

      o = entry.get("six");
      assertEquals(Util.literalMap().p("a",7.0).p("b",8.0),entry.get("six"));

      o = ctx.evaluateString(scope, "function foo(){return {a:7,b:8}};foo()", "inline", 0, null);
      entry = Util.wrapScriptableMap((Scriptable)o);
      assertEquals(Util.literalSet().a(7.0).a(8.0), new HashSet(entry.values()));
     
      //assertEquals(Util.literalList().a(3).a(4).a(5), entry.get("nums"));
    } finally { Context.exit(); }
  }
 
View Full Code Here

Examples of easysm.stores.Row.values()

 
  private void addToCombobox() {
    Row toAdd = targetRows.elementAt(targetRows.size()-1);
    String descr = "";
   
    for (Value v : toAdd.values())
          descr += v.toString()+" ";
    descr += "| "+toAdd.state().name() +" |";
   
    jComboBox_targetRow.addItem(descr);
   
View Full Code Here

Examples of edu.brown.utils.PartitionSet.values()

                      (trace.val ? "\n"+vertex.debug() : "")));
       
        Statement catalog_stmt = vertex.getCatalogItem();
        PartitionSet partitions = vertex.getPartitions();
        boolean readQuery = (catalog_stmt.getQuerytype() == QueryType.SELECT.getValue());
        for (int partition : partitions.values()) {
            if (estimate.isDoneProbabilitySet(partition) == false) {
                estimate.setDoneProbability(partition, vertex.getDoneProbability(partition));
            }
            if (estimate.isWriteProbabilitySet(partition) == false) {
                estimate.setWriteProbability(partition, vertex.getWriteProbability(partition));
View Full Code Here

Examples of edu.stanford.ppl.concurrent.SnapTreeMap.values()

    /**
     *  Values.toArray contains all values
     */
    public void testValuesToArray() {
        SnapTreeMap map = map5();
        Collection v = map.values();
        Object[] ar = v.toArray();
        ArrayList s = new ArrayList(Arrays.asList(ar));
        assertEquals(5, ar.length);
        assertTrue(s.contains("A"));
        assertTrue(s.contains("B"));
View Full Code Here

Examples of er.extensions.eof.qualifiers.ERXInQualifier.values()

    if (operator.equals(EOKeyValueQualifier.QualifierOperatorEqual)) {
      if (qual instanceof ERXInQualifier) {
        ERXInQualifier inQualifier = (ERXInQualifier) qual;
        List<ClauseType> clauses = new ArrayList<ClauseType>();
       
        for (Object o : inQualifier.values()) {
          clauses.add(comparison(entity, key, ComparisonOperator.EQUAL, o));
        }
        return joinWithOrOperator(clauses);
      } else {
        return comparison(entity, key, ComparisonOperator.EQUAL, value);
View Full Code Here

Examples of gnu.trove.map.TIntLongMap.values()

        map.put( KEY_ONE, 1 );
        map.put( KEY_TWO, 2 );

        assertEquals( 2, map.size() );

        long[] values = map.values( new long[map.size()] );
        assertEquals( 2, values.length );
        TLongList values_list = new TLongArrayList( values );

        assertTrue( values_list.contains( 1 ) );
        assertTrue( values_list.contains( 2 ) );
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.