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; } } }
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; } } }
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; } } }
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; } } }
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; } } }
public boolean has(int key) { if (key < 0) Kit.codeBug(); return 0 <= findIndex(key); }
public boolean has(int key) { if (key < 0) Kit.codeBug(); return 0 <= findIndex(key); }
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; } } }
/** * 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; }
public boolean has(int key) { if (key < 0) Kit.codeBug(); return 0 <= findIndex(key); }
public boolean has(int key) { if (key < 0) Kit.codeBug(); return 0 <= findIndex(key); }
public boolean has(int key) { if (key < 0) Kit.codeBug(); return 0 <= findIndex(key); }
public boolean has(int key) { if (key < 0) Kit.codeBug(); return 0 <= findIndex(key); }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }