Examples of containsValue()


Examples of com.hazelcast.multimap.MultiMapContainer.containsValue()

        if (key != null && value != null) {
            response = container.containsEntry(isBinary(), key, value);
        } else if (key != null) {
            response = container.containsKey(key);
        } else {
            response = container.containsValue(isBinary(), value);
        }
    }

    protected void writeInternal(ObjectDataOutput out) throws IOException {
        super.writeInternal(out);
View Full Code Here

Examples of com.hazelcast.multimap.impl.MultiMapContainer.containsValue()

        if (key != null && value != null) {
            response = container.containsEntry(isBinary(), key, value);
        } else if (key != null) {
            response = container.containsKey(key);
        } else {
            response = container.containsValue(isBinary(), value);
        }
    }

    public long getThreadId() {
        return threadId;
View Full Code Here

Examples of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore.containsValue()

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.containsValue(value);
    }

    @Override
    public void write(PortableWriter writer)
            throws IOException {
View Full Code Here

Examples of com.hazelcast.replicatedmap.record.ReplicatedRecordStore.containsValue()

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.containsValue(value);
    }

    @Override
    public void write(PortableWriter writer)
            throws IOException {
View Full Code Here

Examples of com.sun.sgs.app.util.ScalableHashMap.containsValue()

      new TestAbstractKernelRunnable() {
    public void run() throws Exception {
        dataService.removeObject(dataService.getBinding("bar"));
        ScalableHashMap test =
      (ScalableHashMap) dataService.getBinding("test");
        assertFalse(test.containsValue(new Bar(1)));
        assertEquals(2, test.size());
    }
      }, taskOwner);
  txnScheduler.runTask(
      new TestAbstractKernelRunnable() {
View Full Code Here

Examples of com.sun.star.container.XEnumerableMap.containsValue()

        assure( "containsKey( Double.+INF failed", map.containsKey( Double.POSITIVE_INFINITY ) );
        assure( "containsKey( Double.-INF failed", map.containsKey( Double.NEGATIVE_INFINITY ) );
        assure( "containsKey( 0 ) failed", map.containsKey( new Double( 0 ) ) );

        assure( "containsValue( Double.+INF ) failed", map.containsValue( Double.POSITIVE_INFINITY ) );
        assure( "containsValue( Double.-INF ) failed", map.containsValue( Double.NEGATIVE_INFINITY ) );
        assure( "containsValue( 0 ) failed", map.containsValue( new Double( 0 ) ) );

        // put and containsKey should reject Double.NaN as key
        assureException( "Double.NaN should not be allowed as key in a call to 'put'", map, "put",
View Full Code Here

Examples of de.danet.an.workflow.omgcore.ProcessData.containsValue()

    private boolean invoke(WfActivity a) throws Exception {
  assertTrue(a.state() != null);
  ProcessData processData = a.processContext();
  // Check data field has been read correctly.
  processData.containsKey("emailAddress");
  processData.containsValue("account@bank.com");
  a.complete();
  Thread.sleep (1000);
  return true;
    }
View Full Code Here

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

    /**
     *  containsValue returns true for held values
     */
    public void testContainsValue() {
        SnapTreeMap map = map5();
        assertTrue(map.containsValue("A"));
        assertFalse(map.containsValue("Z"));
    }

    /**
     *  get returns the correct element at the given key,
View Full Code Here

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

            if ( keys[i] != 42 ) {
                assertTrue( values.contains( vals[i] ) );
                assertTrue( map.containsValue( vals[i] ) );
            } else {
                assertFalse( values.contains( vals[i] ) );
                assertFalse( map.containsValue( vals[i] ) );
            }
        }
    }

View Full Code Here

Examples of grails.web.mvc.FlashScope.containsValue()

        assertEquals("flintstone",fs.get("fred"));
        assertEquals("rubble",fs.get("barney"));
        assertEquals(3, fs.size());
        assertTrue(fs.containsKey("test"));
        assertTrue(fs.containsKey("barney"));
        assertTrue(fs.containsValue("value"));
        assertFalse(fs.containsKey("wilma"));

        // the state immediately following this one the map should still contain the previous entries
        fs.next();
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.