Generic type of this collection (e.g.
Generic type of this collection (e.g. Map, Map2, Set).
Immutable variant of this collection.
Immutable variant of this collection.
Mutable variant of this collection.
Mutable variant of this collection.
Returns true if the container is empty, false otherwise.
Returns true if the container is empty, false otherwise.
Return the size of this container; we use Long
so that big containers
can be manipulated.
Return the size of this container; we use Long
so that big containers
can be manipulated.
Creates a mutable copy of this collection.
Creates a mutable copy of this collection.
Returns true if the container is non-empty, false otherwise.
Returns true if the container is non-empty, false otherwise.
Returns a pointer to the start of this container instance.
Returns a pointer to the start of this container instance.
Adds the given key to the container.
Adds the given key to the container. If the key is already present, returns the pointer associated with the existing key. If the key is new, any eventual associated values are undefined (they should immediately be updated).
Returns a pointer to the given item, if it exists, or null.
Returns a pointer to the given item, if it exists, or null.
Returns the key pointed by ptr
.
Returns the key pointed by ptr
.
Returns a pointer to the next element if available, or returns a null pointer.
Returns a pointer to the next element if available, or returns a null pointer.
Removes the pointed element.
Removes the pointed element.
Removes the pointed element, and returns the pointer to the next element, or null if at the end.
Removes the pointed element, and returns the pointer to the next element, or null if at the end.
Removes all elements from this collection, keeping the all allocated arrays.
Removes all elements from this collection, keeping the all allocated arrays.
Returns an immutable version of this mutable collection.
Returns an immutable version of this mutable collection. The mutable instance is cleared.
Returns this collection if already immutable, or an immutable copy.
Returns this collection if already immutable, or an immutable copy.
Checks if two collections are equal.
Checks if two collections are equal.
Equal means the collections have the same generic type (which is checked
by the method ptrCastT
) and the same contents.
Comparing metal collections with any other collection types (including those from Scala) will return false.
Hashes the contents of the collection to an Int value.
Hashes the contents of the collection to an Int value.
By xor'ing all the collection's element hashes together, we can be sure that collections with the same contents will have the same hashCode regardless of the order those items appear.
Flag indicating that the equals methods of this object should be called in priority.
Adds the given key to the container, similarly to ptrAddKey
, but takes the key
from the given array, which should be of type Array[K]
.
Adds the given key to the container, similarly to ptrAddKey
, but takes the key
from the given array, which should be of type Array[K]
. The array type is however
recovered at runtime to avoid boxing.
Tests if the parameter has the same generic type, and returns an optional cast.
Checks that the pointed element exists in the other collection and has the same value.
Returns the hashCode of the pointed element.
Returns the toString representation of the pointed element.
String prefix used in the toString
method.
String prefix used in the toString
method.