Examples of containsValue()


Examples of javax.management.openmbean.TabularDataSupport.containsValue()

      HashMap map = new HashMap();
      map.put("name1", "value1");
      map.put("name2", new Integer(2));
      CompositeDataSupport compData2 = new CompositeDataSupport(rowType2, map);

      assertTrue("Didn't expect containsValue wrong composite type", data.containsValue((Object) compData2) == false);

      map = new HashMap();
      map.put("name1", "value1");
      map.put("name2", new Integer(3));
      CompositeDataSupport compData = new CompositeDataSupport(rowType, map);
View Full Code Here

Examples of javax.print.attribute.HashAttributeSet.containsValue()

      new SimpleAttribute[] { new SimpleAttribute(2), att2 };
    testSet = new HashAttributeSet( array );
   
    harness.check(testSet.size(), 1, "size");
    harness.check(testSet.hashCode(), 3, "hashcode");
    harness.check(testSet.containsValue(att2), true, "containsValue");
   
    AnotherSimpleAttribute att3 = new AnotherSimpleAttribute(4);
   
    harness.check(testSet.add(att3), true, "add");
    harness.check(testSet.size(), 2, "size");
View Full Code Here

Examples of javax.script.Bindings.containsValue()

    return bindings.get(key);
  }
 
  public String getObjectKey(Object object) {
    Bindings bindings = engine.getBindings(ScriptContext.ENGINE_SCOPE);
    if( bindings.containsValue(object)==false ) {
      return null;
    }
    for(String key: bindings.keySet()) {
      if(bindings.get(key)==object) {
        return key;
View Full Code Here

Examples of net.openhft.collections.SharedHashMap.containsValue()

     * contains returns true for contained value
     */
    @Test
    public void testContains() throws IOException {
        SharedHashMap map = map5();
        assertTrue(map.containsValue("A"));
        assertFalse(map.containsValue("Z"));
    }

    /**
     * containsKey returns true for contained key
View Full Code Here

Examples of org.apache.axis2.jaxws.handler.SOAPHeadersAdapter.containsValue()

       
        SOAPHeadersAdapter adapter = (SOAPHeadersAdapter)messageContext.getProperty(Constants.JAXWS_OUTBOUND_SOAP_HEADERS);
       
        adapter.put(ACOH1_HEADER_QNAME, acoh1ContentList);
       
        assertTrue("Adapter should contain the value " + acoh1ContentList, adapter.containsValue(acoh1ContentList));
  }
 
  public void testEmpty() throws Exception {
    MessageContext messageContext = getMessageContext();
   
View Full Code Here

Examples of org.apache.commons.collections.BidiMap.containsValue()

        it.setValue(newValue1);
        confirmed.put(key1, newValue1);
        assertSame(key1, it.getKey());
        assertSame(newValue1, it.getValue());
        assertEquals(true, bidi.containsKey(key1));
        assertEquals(true, bidi.containsValue(newValue1));
        assertEquals(newValue1, bidi.get(key1));
        verify();
       
        it.setValue(newValue1)// same value - should be OK
        confirmed.put(key1, newValue1);
View Full Code Here

Examples of org.apache.commons.collections.IterableMap.containsValue()

        assertEquals(1, map.size());
        assertSame(I2A, map.get(I1A));
        assertSame(null, map.get(I1B));
        assertEquals(true, map.containsKey(I1A));
        assertEquals(false, map.containsKey(I1B));
        assertEquals(true, map.containsValue(I2A));
        assertEquals(false, map.containsValue(I2B));
       
        map.put(I1A, I2B);
        assertEquals(1, map.size());
        assertSame(I2B, map.get(I1A));
View Full Code Here

Examples of org.apache.commons.collections.MultiHashMap.containsValue()

                return map.get( arg0 );
            }

            public boolean containsValue( Object arg0 )
            {
                return map.containsValue( arg0 );
            }

            public Object put( Object arg0, Object arg1 )
            {
                return map.put( arg0, arg1 );
View Full Code Here

Examples of org.apache.commons.collections.SortedBidiMap.containsValue()

        set.remove(secondEntry);
        assertEquals(0, sub.size());
        assertEquals(size - 2, sm.size());
        assertEquals(size - 2, sm.inverseBidiMap().size());
        assertEquals(false, sm.containsKey(secondEntry.getKey()));
        assertEquals(false, sm.containsValue(secondEntry.getValue()));
        assertEquals(false, sm.inverseBidiMap().containsKey(secondEntry.getValue()));
        assertEquals(false, sm.inverseBidiMap().containsValue(secondEntry.getKey()));
        assertEquals(false, sub.containsKey(secondEntry.getKey()));
        assertEquals(false, sub.containsValue(secondEntry.getValue()));
        assertEquals(false, set.contains(secondEntry));
View Full Code Here

Examples of org.apache.commons.collections15.BidiMap.containsValue()

        it.setValue(newValue1);
        confirmed.put(key1, newValue1);
        assertSame(key1, it.getKey());
        assertSame(newValue1, it.getValue());
        assertEquals(true, bidi.containsKey(key1));
        assertEquals(true, bidi.containsValue(newValue1));
        assertEquals(newValue1, bidi.get(key1));
        verify();

        it.setValue(newValue1)// same value - should be OK
        confirmed.put(key1, newValue1);
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.