Examples of update()


Examples of org.sfsoft.jfighter2dx.effects.Explosion.update()

    Explosion explosion = null;
   
    for (int i = explosions.size - 1; i >= 0; i--) {
     
      explosion = explosions.get(i);
      explosion.update(dt);
      if (explosion.mustDie()) {
        explosions.removeIndex(i);
      }
    }
  }
View Full Code Here

Examples of org.sfsoft.jfighter2dx.powerups.Powerup.update()

   
    Powerup item = null;
   
    for (int i = powerups.size - 1; i >= 0; i--) {
      item = powerups.get(i);
      item.update(dt);
     
      if (item.getX() < 0)
        powerups.removeIndex(i);
    }
  }
View Full Code Here

Examples of org.snmp4j.agent.mo.snmp.TimeStamp.update()

      }
      counter.increment();
      // update timestamp
      TimeStamp timestamp = (TimeStamp)
          event.getTable().getColumn(Snmp4jDemoMib.idxSnmp4jDemoEntryCol4);
      timestamp.update((MOMutableTableRow)event.getRow(),
                       Snmp4jDemoMib.idxSnmp4jDemoEntryCol4);
      // fire notification
      Integer32 type =
          new Integer32(Snmp4jDemoMib.Snmp4jDemoTableRowModificationEnum.updated);
      switch (event.getType()) {
View Full Code Here

Examples of org.sonar.core.issue.db.IssueMapper.update()

  protected void doUpdate(DbSession session, Date now, DefaultIssue issue) {
    IssueMapper issueMapper = session.getMapper(IssueMapper.class);
    IssueDto dto = IssueDto.toDtoForUpdate(issue, projectId(), now);
    if (Issue.STATUS_CLOSED.equals(issue.status()) || issue.selectedAt() == null) {
      // Issue is closed by scan or changed by end-user
      issueMapper.update(dto);

    } else {
      int count = issueMapper.updateIfBeforeSelectedDate(dto);
      if (count == 0) {
        // End-user and scan changed the issue at the same time.
View Full Code Here

Examples of org.sonar.server.db.migrations.MassUpdate.update()

  public void execute(Context context) throws SQLException {
    final Date now = new Date(system.now());

    MassUpdate massUpdate = context.prepareMassUpdate();
    massUpdate.select("SELECT p.id FROM projects p WHERE p.scope=? AND p.enabled=?").setString(1, "PRJ").setBoolean(2, true);
    massUpdate.update("UPDATE projects SET authorization_updated_at=? WHERE id=?");
    massUpdate.execute(new MassUpdate.Handler() {
      @Override
      public boolean handle(Select.Row row, SqlStatement update) throws SQLException {
        Long id = row.getLong(1);
        update.setDate(1, now);
View Full Code Here

Examples of org.sonar.server.qualityprofile.db.ActiveRuleDao.update()

    }
    ActiveRule.Inheritance inheritance = change.getInheritance();
    if (inheritance != null) {
      activeRule.setInheritance(inheritance.name());
    }
    dao.update(dbSession, activeRule);

    for (Map.Entry<String, String> param : change.getParameters().entrySet()) {
      ActiveRuleParamDto activeRuleParamDto = context.activeRuleParamsAsMap().get(param.getKey());
      if (activeRuleParamDto == null) {
        // did not exist
View Full Code Here

Examples of org.sonar.wsclient.issue.ActionPlanClient.update()

  public void should_update_action_plan() {
    HttpRequestFactory requestFactory = new HttpRequestFactory(httpServer.url());
    httpServer.stubResponseBody("{\"actionPlan\": {\"key\": \"382f6f2e-ad9d-424a-b973-9b065e04348a\"}}");

    ActionPlanClient client = new DefaultActionPlanClient(requestFactory);
    ActionPlan result = client.update(
      UpdateActionPlan.create().key("382f6f2e-ad9d-424a-b973-9b065e04348a").name("Short term").description("Short term issues").deadLine(stringToDate("2014-01-01")));

    assertThat(httpServer.requestedPath()).isEqualTo("/api/action_plans/update");
    assertThat(httpServer.requestParams()).includes(
      entry("key", "382f6f2e-ad9d-424a-b973-9b065e04348a"),
View Full Code Here

Examples of org.spongycastle.crypto.Digest.update()

 
    public static byte[] ripemd160(byte[] message) {
      Digest digest = new RIPEMD160Digest();
        if (message != null) {
          byte[] resBuf = new byte[digest.getDigestSize()];
          digest.update(message, 0, message.length);
          digest.doFinal(resBuf, 0);
          return resBuf;
      }
      throw new NullPointerException("Can't hash a NULL value");
    }
View Full Code Here

Examples of org.spongycastle.crypto.digests.RIPEMD160Digest.update()

 
    public static byte[] ripemd160(byte[] message) {
      Digest digest = new RIPEMD160Digest();
        if (message != null) {
          byte[] resBuf = new byte[digest.getDigestSize()];
          digest.update(message, 0, message.length);
          digest.doFinal(resBuf, 0);
          return resBuf;
      }
      throw new NullPointerException("Can't hash a NULL value");
    }
View Full Code Here

Examples of org.spout.vanilla.inventory.block.EnchantmentTableInventory.update()

      return;
    }
    if (!Enchantment.addRandomEnchantments(inv.get(), enchantLevel)) {
      return;
    }
    inv.update(EnchantmentTableInventory.SLOT, inv.get());
    if (human.getGameMode() != GameMode.CREATIVE) {
      level.removeLevels(enchantLevel);
    }
  }
}
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.