/** {@inheritDoc} */ public boolean retainAll(long[] array) { boolean changed = false; Arrays.sort(array); long[] set = _set; byte[] states = _states; for (int i = set.length; i-- > 0; ) { if (states[i] == FULL && (Arrays.binarySearch(array, set[i]) < 0)) { removeAt(i); changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean retainAll(int[] array) { boolean changed = false; Arrays.sort(array); int[] values = _values; byte[] states = _states; for (int i = values.length; i-- > 0; ) { if (states[i] == FULL && (Arrays.binarySearch(array, values[i]) < 0)) { removeAt(i); changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean retainAll(char[] array) { boolean changed = false; Arrays.sort(array); TCharOffheapArray values = _values; TByteOffheapArray states = _states; for (int i = capacity(); i-- > 0; ) { if (states.get(i) == FULL && (Arrays.binarySearch(array, values.get(i)) < 0)) { removeAt(i); changed = true; } } return changed; }