@Generated(date="2023-04-24T17:14:49+0800",
value="AbstractKTypeCollection.java")
abstract class AbstractObjectCollection<KType>
extends java.lang.Object
implements ObjectCollection<KType>
| Constructor and Description |
|---|
AbstractObjectCollection() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equals(java.lang.Object v1,
java.lang.Object v2) |
int |
removeAll(ObjectLookupContainer<? super KType> c)
Default implementation uses a predicate for removal.
|
int |
retainAll(ObjectLookupContainer<? super KType> c)
Default implementation uses a predicate for retaining.
|
int |
retainAll(ObjectPredicate<? super KType> predicate)
Default implementation redirects to
ObjectCollection.removeAll(ObjectPredicate) and
negates the predicate. |
java.lang.Object[] |
toArray()
Default implementation of copying to an array.
|
<T> T[] |
toArray(java.lang.Class<T> componentClass)
Copies all elements of this container to a dynamically created array of the
given component type.
|
java.lang.String |
toString()
Convert the contents of this container to a human-friendly string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, release, removeAll, removeAllpublic int removeAll(ObjectLookupContainer<? super KType> c)
removeAll in interface ObjectCollection<KType>public int retainAll(ObjectLookupContainer<? super KType> c)
retainAll in interface ObjectCollection<KType>public int retainAll(ObjectPredicate<? super KType> predicate)
ObjectCollection.removeAll(ObjectPredicate) and
negates the predicate.retainAll in interface ObjectCollection<KType>public java.lang.Object[] toArray()
toArray in interface ObjectContainer<KType>public <T> T[] toArray(java.lang.Class<T> componentClass)
ObjectContainertoArray in interface ObjectContainer<KType>public java.lang.String toString()
toString in class java.lang.Objectprotected boolean equals(java.lang.Object v1,
java.lang.Object v2)