Examples of containsValue()


Examples of ORG.oclc.oai.server.crosswalk.Crosswalks.containsValue()

      if (metadataPrefix == null || metadataPrefix.length() == 0
    || identifier == null || identifier.length() == 0
    || hasBadArguments(request, validParamNames.iterator(), validParamNames)) {
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue(metadataPrefix)) {
    throw new CannotDisseminateFormatException(metadataPrefix);
      } else {
    String record = abstractCatalog.getRecord(identifier, metadataPrefix);
    if (record != null) {
        sb.append(getRequestElement(request, validParamNames, baseURL));
View Full Code Here

Examples of cern.colt.map.AbstractIntDoubleMap.containsValue()

System.out.println(map.get(3));

System.out.println(map.containsKey(4));
System.out.println(map.get(4));

System.out.println(map.containsValue((int)71.0));
System.out.println(map.keyOf((int)71.0));

System.out.println(map);
}
/**
 
View Full Code Here

Examples of cern.colt.map.OpenIntDoubleHashMap.containsValue()

System.out.println(map.get(3));

System.out.println(map.containsKey(4));
System.out.println(map.get(4));

System.out.println(map.containsValue((int)71.0));
System.out.println(map.keyOf((int)71.0));

System.out.println(map);
}
/**
 
View Full Code Here

Examples of com.alibaba.fastjson.JSONObject.containsValue()

        json.put("B", 52);
        json.put("A", 53);
        Assert.assertEquals(false, json.isEmpty());
        Assert.assertEquals(true, json.containsKey("C"));
        Assert.assertEquals(false, json.containsKey("D"));
        Assert.assertEquals(true, json.containsValue(52));
        Assert.assertEquals(false, json.containsValue(33));
        Assert.assertEquals(null, json.remove("D"));
        Assert.assertEquals(51L, json.remove("C"));
        Assert.assertEquals(2, json.keySet().size());
        Assert.assertEquals(2, json.values().size());
View Full Code Here

Examples of com.eviware.soapui.support.types.StringToStringMap.containsValue()

      {
        String prefix = node.getPrefix();
        if( prefix == null || prefix.length() == 0 )
          prefix = "ns" + nsCnt++ ;

        while( !nsMap.containsKey( namespaceURI ) && nsMap.containsValue( prefix ) )
        {
          prefix = "ns" + nsCnt++ ;
        }

        nsMap.put( namespaceURI, prefix );
View Full Code Here

Examples of com.hazelcast.core.IMap.containsValue()

            }
        }, 2);
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
                map.containsValue(new Customer(random.nextInt(100), String.valueOf(random.nextInt(100000))));
            }
        }, 2);
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
View Full Code Here

Examples of com.hazelcast.core.IMap.containsValue()

                        } else if (operation < 4) {
                            map.containsKey(key);
                            stats.increment("containsKey");
                        } else if (operation < 5) {
                            Object value = String.valueOf(key);
                            map.containsValue(value);
                            stats.increment("containsValue");
                        } else if (operation < 6) {
                            map.putIfAbsent(key, createValue());
                            stats.increment("putIfAbsent");
                        } else if (operation < 7) {
View Full Code Here

Examples of com.hazelcast.core.MultiMap.containsValue()

    @Test(expected = NullPointerException.class)
    public void testContainsValue_whenNullKey() throws InterruptedException {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());

        multiMap.containsValue(null);
    }

    @Test(expected = NullPointerException.class)
    public void testContainsEntry_whenNullKey() throws InterruptedException {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
View Full Code Here

Examples of com.hazelcast.map.RecordStore.containsValue()

    }

    public void run() {
        MapService mapService = (MapService) getService();
        RecordStore recordStore = mapService.getRecordStore(getPartitionId(), name);
        contains = recordStore.containsValue(testValue);
        if (mapContainer.getMapConfig().isStatisticsEnabled()) {
            ((MapService) getService()).getLocalMapStatsImpl(name).incrementOtherOperations();
        }
    }
View Full Code Here

Examples of com.hazelcast.map.impl.RecordStore.containsValue()

    }

    public void run() {
        MapService mapService = getService();
        RecordStore recordStore = mapService.getMapServiceContext().getRecordStore(getPartitionId(), name);
        contains = recordStore.containsValue(testValue);
        if (mapContainer.getMapConfig().isStatisticsEnabled()) {
            ((MapService) getService()).getMapServiceContext().getLocalMapStatsProvider()
                    .getLocalMapStatsImpl(name).incrementOtherOperations();
        }
    }
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.