Examples of key()


Examples of net.sourceforge.stripes.controller.FlashScope.key()

        }

        // If a flash scope exists, add the parameter to the request
        FlashScope flash = FlashScope.getCurrent(request, false);
        if (flash != null) {
            addParameter(StripesConstants.URL_KEY_FLASH_SCOPE_ID, flash.key());
        }

        // Prepend the context path if requested
        String url = getUrl(request.getLocale());
        if (prependContext) {
View Full Code Here

Examples of net.tomp2p.message.Message.key()

        } else if (getBuilder.keys() == null) {

            if (getBuilder.locationKey() == null || getBuilder.domainKey() == null) {
                throw new IllegalArgumentException("Null not allowed in location or domain");
            }
            message.key(getBuilder.locationKey());
            message.key(getBuilder.domainKey());

            if (getBuilder.contentKeys() != null) {
                message.keyCollection(new KeyCollection(getBuilder.locationKey(), getBuilder
                        .domainKey(), getBuilder.versionKey(), getBuilder.contentKeys()));
View Full Code Here

Examples of ns.foundation.NSKeyValueCoding._KeyBinding.key()

  public void testDefaultImplementation$_keyGetBindingForKey$knownMethod() {   
    KeyBindingTypeTest obj = new KeyBindingTypeTest();

    _KeyBinding kb = DefaultImplementation._keyGetBindingForKey(obj, "knownMethod");
    assertEquals(obj.getClass(), kb.targetClass());
    assertEquals("knownMethod", kb.key());
    assertEquals(Integer.class, kb.valueType());
  }
 
  public void testDefaultImplementation$_keyGetBindingForKey$unknownMethod() {   
    KeyBindingTypeTest obj = new KeyBindingTypeTest();
View Full Code Here

Examples of org.amplafi.json.JSONStringer.key()

            jj.value(1);
            jj.array();
            jj.value(null);
            jj.array();
            jj.object();
            jj.key("empty-array").array().endArray();
            jj.key("answer").value(42);
            jj.key("null").value(null);
            jj.key("false").value(false);
            jj.key("true").value(true);
            jj.key("big").value(123456789e+88);
View Full Code Here

Examples of org.apache.avro.mapred.Pair.key()

        valueRecord.put(i, utf8);
      } else {
        valueRecord.put(i, val.getValues().get(i));
      }
    }
    pair.key(keyRecord);
    pair.value(valueRecord);

    mapper.map(key, val, output, reporter);
   
    verify(output).collect(new AvroValue<Pair>(pair), nullWritable);
View Full Code Here

Examples of org.apache.cassandra.db.Row.key()

            byte[] body = (byte[])result[0];
            DataInputBuffer bufIn = new DataInputBuffer();
            bufIn.reset(body, body.length);
            ReadResponse response = ReadResponse.serializer().deserialize(bufIn);
            Row row = response.row();
            rows.put(row.key(), row);
        }       
        return rows;
    }

    /**
 
View Full Code Here

Examples of org.apache.cassandra.db.RowMutation.key()

                    }
                   
                    if (logger.isDebugEnabled())
                        logger.debug(String.format("replaying mutation for %s.%s: %s",
                                                    rm.getTable(),
                                                    ByteBufferUtil.bytesToHex(rm.key()),
                                                    "{" + StringUtils.join(rm.getColumnFamilies(), ", ") + "}"));

                    final long entryLocation = reader.getFilePointer();
                    final CommitLogHeader finalHeader = clHeader;
                    final RowMutation frm = rm;
View Full Code Here

Examples of org.apache.cassandra.db.WriteResponse.key()

      Object[] body = response.getMessageBody();
      WriteResponse writeResponse = (WriteResponse) body[0];
      boolean result = writeResponse.isSuccess();
      if (!result) {
        logger_.debug("Write at " + response.getFrom()
            + " may have failed for the key " + writeResponse.key());
      }
      returnValue |= result;
    }
    return returnValue;
  }
View Full Code Here

Examples of org.apache.commons.math.util.OpenIntToDoubleHashMap.Iterator.key()

    public double[] getData() {
        double[] res = new double[virtualSize];
        Iterator iter = entries.iterator();
        while (iter.hasNext()) {
            iter.advance();
            res[iter.key()] = iter.value();
        }
        return res;
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of org.apache.commons.math3.util.OpenIntToDoubleHashMap.Iterator.key()

        OpenMapRealVector res = copyThis ? this.copy() : v.copy();
        Iterator iter = copyThis ? v.entries.iterator() : entries.iterator();
        OpenIntToDoubleHashMap randomAccess = copyThis ? entries : v.entries;
        while (iter.hasNext()) {
            iter.advance();
            int key = iter.key();
            if (randomAccess.containsKey(key)) {
                res.setEntry(key, randomAccess.get(key) + iter.value());
            } else {
                res.setEntry(key, iter.value());
            }
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.