Examples of KeyValue


Examples of com.vmware.vim25.KeyValue

        // Check host license properties to see if specified feature is supported by the license.
        for (KeyAnyValue prop : props) {
            String key = prop.getKey();
            if (key.equalsIgnoreCase(LICENSE_INFO_FEATURE)) {
                KeyValue propValue = (KeyValue)prop.getValue();
                if (propValue.getKey().equalsIgnoreCase(featureKey)) {
                    featureSupported = true;
                    break;
                }
            }
        }
View Full Code Here

Examples of com.voyagegames.java.tracking.KeyValue

public class KeyValueTest {

  @Test
  public void testKeyValue() {
    final long start = System.currentTimeMillis();
    final KeyValue kv = new KeyValue("testkey", "testvalue");
    final long end = System.currentTimeMillis();
   
    assertTrue(kv.key.contentEquals("testkey"));
    assertTrue(kv.value.contentEquals("testvalue"));
    assertTrue(kv.timestamp >= start);
View Full Code Here

Examples of halfpipe.consul.model.KeyValue

    public void testGet() throws IOException {
        List<KeyValue> values = kvClient.getKeyValue(KEY);
        assertNotNull(values, "values is null");
        assertFalse(values.isEmpty(), "Values is null");
        assertTrue(values.size() == 1, "Values is not size 1");
        KeyValue keyValue = values.get(0);
        //TODO: how to deal with this?
        String decoded = objectMapper.readValue(keyValue.getDecoded(), String.class);

        assertEquals(decoded, VALUE);
    }
View Full Code Here

Examples of javafx.animation.KeyValue

          item.scaleXProperty().set(newScale);
          item.scaleYProperty().set(newScale);
          item.angle.set(newAngle);
        } else {
            keyFrames.add(new KeyFrame(duration,
                    new KeyValue(item.translateXProperty(), newX, INTERPOLATOR),
                    new KeyValue(item.scaleXProperty(), newScale, INTERPOLATOR),
                    new KeyValue(item.scaleYProperty(), newScale, INTERPOLATOR),
                    new KeyValue(item.angle, newAngle, INTERPOLATOR)));
        }
    }
View Full Code Here

Examples of javax.xml.crypto.dsig.keyinfo.KeyValue

        }
        if (!(obj instanceof KeyValue)) {
            return false;
        }
        try {
            KeyValue kv = (KeyValue)obj;
            if (publicKey == null ) {
                if (kv.getPublicKey() != null) {
                    return false;
                }
            } else if (!publicKey.equals(kv.getPublicKey())) {
                return false;
            }
        } catch (KeyException ke) {
            // no practical way to determine if the keys are equal
            return false;
View Full Code Here

Examples of net.javacrumbs.jsonunit.core.internal.Node.KeyValue

     */
    private static Map<String, Node> getFields(Node node) {
        Map<String, Node> result = new HashMap<String, Node>();
        Iterator<KeyValue> fields = node.fields();
        while (fields.hasNext()) {
            KeyValue field = fields.next();
            result.put(field.getKey(), field.getValue());
        }
        return Collections.unmodifiableMap(result);
    }
View Full Code Here

Examples of org.apache.accumulo.core.data.KeyValue

  @Override
  public Entry<Key,Value> next() {
    try {
      byte[] v = iter.getTopValue().get();
      // copy just like tablet server does, do this before calling next
      KeyValue ret = new KeyValue(new Key(iter.getTopKey()), Arrays.copyOf(v, v.length));
     
      iter.next();
     
      while (iter != null && !iter.hasTop())
        nextTablet();
View Full Code Here

Examples of org.apache.accumulo.proxy.thrift.KeyValue

      ret.setResults(new ArrayList<KeyValue>());
      int numRead = 0;
      try {
        while (batchScanner.hasNext() && numRead < k) {
          Map.Entry<Key,Value> next = batchScanner.next();
          ret.addToResults(new KeyValue(Util.toThrift(next.getKey()), ByteBuffer.wrap(next.getValue().get())));
          numRead++;
        }
        ret.setMore(numRead == k);
      } catch (Exception ex) {
        closeScanner(scanner);
View Full Code Here

Examples of org.apache.commons.collections.KeyValue

        Map.Entry entry = new UnmodifiableMapEntry(key, value);
        assertSame(key, entry.getKey());
        assertSame(value, entry.getValue());

        // 2. test pair constructor
        KeyValue pair = new DefaultKeyValue(key, value);
        entry = new UnmodifiableMapEntry(pair);
        assertSame(key, entry.getKey());
        assertSame(value, entry.getValue());

        // 3. test copy constructor
View Full Code Here

Examples of org.apache.commons.collections15.KeyValue

        Map.Entry entry = new DefaultMapEntry(key, value);
        assertSame(key, entry.getKey());
        assertSame(value, entry.getValue());

        // 2. test pair constructor
        KeyValue pair = new DefaultKeyValue(key, value);
        assertSame(key, pair.getKey());
        assertSame(value, pair.getValue());

        // 3. test copy constructor
        Map.Entry entry2 = new DefaultMapEntry(entry);
        assertSame(key, entry2.getKey());
        assertSame(value, entry2.getValue());
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.