mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-28 02:48:14 -05:00
Update #47 - Singleplayer lag fixes
This commit is contained in:
@ -0,0 +1,64 @@
|
||||
package com.carrotsearch.hppc;
|
||||
|
||||
import com.carrotsearch.hppc.predicates.ObjectPredicate;
|
||||
|
||||
/**
|
||||
* A collection allows basic, efficient operations on sets of elements (difference and
|
||||
* intersection).
|
||||
*/
|
||||
@com.carrotsearch.hppc.Generated(date = "2024-06-04T15:20:17+0200", value = "KTypeCollection.java")
|
||||
public interface ObjectCollection<KType> extends ObjectContainer<KType> {
|
||||
/**
|
||||
* Removes all occurrences of <code>e</code> from this collection.
|
||||
*
|
||||
* @param e Element to be removed from this collection, if present.
|
||||
* @return The number of removed elements as a result of this call.
|
||||
*/
|
||||
public int removeAll(KType e);
|
||||
|
||||
/**
|
||||
* Removes all elements in this collection that are present in <code>c</code>.
|
||||
*
|
||||
* @return Returns the number of removed elements.
|
||||
*/
|
||||
public int removeAll(ObjectLookupContainer<? super KType> c);
|
||||
|
||||
/**
|
||||
* Removes all elements in this collection for which the given predicate returns <code>true</code>
|
||||
* .
|
||||
*
|
||||
* @return Returns the number of removed elements.
|
||||
*/
|
||||
public int removeAll(ObjectPredicate<? super KType> predicate);
|
||||
|
||||
/**
|
||||
* Keeps all elements in this collection that are present in <code>c</code>. Runs in time
|
||||
* proportional to the number of elements in this collection. Equivalent of sets intersection.
|
||||
*
|
||||
* @return Returns the number of removed elements.
|
||||
*/
|
||||
public int retainAll(ObjectLookupContainer<? super KType> c);
|
||||
|
||||
/**
|
||||
* Keeps all elements in this collection for which the given predicate returns <code>true</code>.
|
||||
*
|
||||
* @return Returns the number of removed elements.
|
||||
*/
|
||||
public int retainAll(ObjectPredicate<? super KType> predicate);
|
||||
|
||||
/**
|
||||
* Removes all elements from this collection.
|
||||
*
|
||||
* @see #release()
|
||||
*/
|
||||
public void clear();
|
||||
|
||||
/**
|
||||
* Removes all elements from the collection and additionally releases any internal buffers.
|
||||
* Typically, if the object is to be reused, a simple {@link #clear()} should be a better
|
||||
* alternative since it'll avoid reallocation.
|
||||
*
|
||||
* @see #clear()
|
||||
*/
|
||||
public void release();
|
||||
}
|
Reference in New Issue
Block a user