org.mozilla.javascript.UintMap.findIndex()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 JavaScript  
字(5.1k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中org.mozilla.javascript.UintMap.findIndex()方法的一些代码示例,展示了UintMap.findIndex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UintMap.findIndex()方法的具体详情如下:
包路径:org.mozilla.javascript.UintMap
类名称:UintMap
方法名:findIndex

UintMap.findIndex介绍

暂无

代码示例

代码示例来源:origin: rhino/js

public void remove(int key) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    keys[index] = DELETED;
    --keyCount;
    // Allow to GC value and make sure that new key with the deleted
    // slot shall get proper default values
    if (values != null) { values[index] = null; }
    if (ivaluesShift != 0) { keys[ivaluesShift + index] = 0; }
  }
}

代码示例来源:origin: ro.isdc.wro4j/rhino

public void remove(int key) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    keys[index] = DELETED;
    --keyCount;
    // Allow to GC value and make sure that new key with the deleted
    // slot shall get proper default values
    if (values != null) { values[index] = null; }
    if (ivaluesShift != 0) { keys[ivaluesShift + index] = 0; }
  }
}

代码示例来源:origin: geogebra/geogebra

public void remove(int key) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    keys[index] = DELETED;
    --keyCount;
    // Allow to GC value and make sure that new key with the deleted
    // slot shall get proper default values
    if (values != null) { values[index] = null; }
    if (ivaluesShift != 0) { keys[ivaluesShift + index] = 0; }
  }
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

public void remove(int key) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    keys[index] = DELETED;
    --keyCount;
    // Allow to GC value and make sure that new key with the deleted
    // slot shall get proper default values
    if (values != null) { values[index] = null; }
    if (ivaluesShift != 0) { keys[ivaluesShift + index] = 0; }
  }
}

代码示例来源:origin: com.github.tntim96/rhino

public void remove(int key) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    keys[index] = DELETED;
    --keyCount;
    // Allow to GC value and make sure that new key with the deleted
    // slot shall get proper default values
    if (values != null) { values[index] = null; }
    if (ivaluesShift != 0) { keys[ivaluesShift + index] = 0; }
  }
}

代码示例来源:origin: rhino/js

public boolean has(int key) {
  if (key < 0) Kit.codeBug();
  return 0 <= findIndex(key);
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

public boolean has(int key) {
  if (key < 0) Kit.codeBug();
  return 0 <= findIndex(key);
}

代码示例来源:origin: io.apigee/rhino

public void remove(int key) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    keys[index] = DELETED;
    --keyCount;
    // Allow to GC value and make sure that new key with the deleted
    // slot shall get proper default values
    if (values != null) { values[index] = null; }
    if (ivaluesShift != 0) { keys[ivaluesShift + index] = 0; }
  }
}

代码示例来源:origin: rhino/js

/**
 * Get object value assigned with key.
 * @return key object value or null if key is absent
 */
public Object getObject(int key) {
  if (key < 0) Kit.codeBug();
  if (values != null) {
    int index = findIndex(key);
    if (0 <= index) {
      return values[index];
    }
  }
  return null;
}

代码示例来源:origin: com.github.tntim96/rhino

public boolean has(int key) {
  if (key < 0) Kit.codeBug();
  return 0 <= findIndex(key);
}

代码示例来源:origin: geogebra/geogebra

public boolean has(int key) {
  if (key < 0) Kit.codeBug();
  return 0 <= findIndex(key);
}

代码示例来源:origin: ro.isdc.wro4j/rhino

public boolean has(int key) {
  if (key < 0) Kit.codeBug();
  return 0 <= findIndex(key);
}

代码示例来源:origin: io.apigee/rhino

public boolean has(int key) {
  if (key < 0) Kit.codeBug();
  return 0 <= findIndex(key);
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 * Get object value assigned with key.
 * @return key object value or null if key is absent
 */
public Object getObject(int key) {
  if (key < 0) Kit.codeBug();
  if (values != null) {
    int index = findIndex(key);
    if (0 <= index) {
      return values[index];
    }
  }
  return null;
}

代码示例来源:origin: rhino/js

/**
 * Get integer value assigned with key.
 * @return key integer value or defaultValue if key is absent
 */
public int getInt(int key, int defaultValue) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    if (ivaluesShift != 0) {
      return keys[ivaluesShift + index];
    }
    return 0;
  }
  return defaultValue;
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 * Get integer value assigned with key.
 * @return key integer value or defaultValue if key is absent
 */
public int getInt(int key, int defaultValue) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    if (ivaluesShift != 0) {
      return keys[ivaluesShift + index];
    }
    return 0;
  }
  return defaultValue;
}

代码示例来源:origin: ro.isdc.wro4j/rhino

/**
 * Get object value assigned with key.
 * @return key object value or null if key is absent
 */
public Object getObject(int key) {
  if (key < 0) Kit.codeBug();
  if (values != null) {
    int index = findIndex(key);
    if (0 <= index) {
      return values[index];
    }
  }
  return null;
}

代码示例来源:origin: geogebra/geogebra

/**
 * Get integer value assigned with key.
 * @return key integer value or defaultValue if key is absent
 */
public int getInt(int key, int defaultValue) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    if (ivaluesShift != 0) {
      return keys[ivaluesShift + index];
    }
    return 0;
  }
  return defaultValue;
}

代码示例来源:origin: geogebra/geogebra

/**
 * Get object value assigned with key.
 * @return key object value or null if key is absent
 */
public Object getObject(int key) {
  if (key < 0) Kit.codeBug();
  if (values != null) {
    int index = findIndex(key);
    if (0 <= index) {
      return values[index];
    }
  }
  return null;
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

/**
 * Get integer value assigned with key.
 * @return key integer value or defaultValue if key is absent
 */
public int getInt(int key, int defaultValue) {
  if (key < 0) Kit.codeBug();
  int index = findIndex(key);
  if (0 <= index) {
    if (ivaluesShift != 0) {
      return keys[ivaluesShift + index];
    }
    return 0;
  }
  return defaultValue;
}

相关文章