public T removeIndex (int index) { T key = items.removeIndex(index); super.remove(key); return key; }
public T removeIndex (int index) { T key = items.removeIndex(index); super.remove(key); return key; }
public boolean remove (T key) { if (!super.remove(key)) return false; items.removeValue(key, false); return true; }
public boolean remove (T key) { if (!super.remove(key)) return false; items.removeValue(key, false); return true; }
/** Retrieves and removes the head of this queue, or returns {@code null} if this queue is empty. * * @return the head of this queue, or {@code null} if this queue is empty. */ @SuppressWarnings("unchecked") public E poll () { if (size == 0) return null; int s = --size; E result = (E)queue[0]; E x = (E)queue[s]; queue[s] = null; if (s != 0) siftDown(0, x); if (uniqueness) set.remove(result); return result; }
public void removeListener(InputActionListener listener) { listeners.remove(listener); }
public boolean remove(ImageEntry image) { return imageSet.remove(image); }
public T removeIndex (int index) { T key = items.removeIndex(index); super.remove(key); return key; }
public boolean remove (T key) { if (!super.remove(key)) return false; items.removeValue(key, false); return true; }
/** Retrieves and removes the head of this queue, or returns {@code null} if this queue is empty. * * @return the head of this queue, or {@code null} if this queue is empty. */ @SuppressWarnings("unchecked") public E poll () { if (size == 0) return null; int s = --size; E result = (E)queue[0]; E x = (E)queue[s]; queue[s] = null; if (s != 0) siftDown(0, x); if (uniqueness) set.remove(result); return result; }
/** Retrieves and removes the head of this queue, or returns {@code null} if this queue is empty. * * @return the head of this queue, or {@code null} if this queue is empty. */ @SuppressWarnings("unchecked") public E poll() { if (size == 0) return null; int s = --size; E result = (E) queue[0]; E x = (E) queue[s]; queue[s] = null; if (s != 0) siftDown(0, x); if (uniqueness) set.remove(result); return result; }
public boolean add(ImageEntry image) { if (!image.fileHandle.exists()) { System.out.println(String.format( "WARNING: Input file doesn't exist: \"%s\"", image.fileHandle.path())); return false; } if (imageSet.contains(image)) { imageSet.remove(image); System.out.println(String.format( "WARNING: Region: \"%s\" is listed twice. The last added configuration will be used - \"%s\"", image.regionName, image.fileHandle.path())); } return imageSet.add(image); }
/** * Delete the entity from the world. * * @param e Entity to remove */ public void deleteEntity(Entity e) { if (!deleted.contains(e)) { deleted.add(e); } if (added.contains(e)) { added.remove(e); } }