Class ConvertedCollection<VInner,VOuter>
java.lang.Object
com.comphenix.protocol.wrappers.collection.AbstractConverted<VInner,VOuter>
com.comphenix.protocol.wrappers.collection.ConvertedCollection<VInner,VOuter>
- Type Parameters:
VInner- - type of the element in the inner invisible collection.VOuter- - type of the elements publically accessible in the outer collection.
- All Implemented Interfaces:
Iterable<VOuter>,Collection<VOuter>
- Direct Known Subclasses:
ConvertedList,ConvertedSet
public abstract class ConvertedCollection<VInner,VOuter>
extends AbstractConverted<VInner,VOuter>
implements Collection<VOuter>
Represents a collection that wraps another collection by transforming the elements going in and out.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends VOuter> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class com.comphenix.protocol.wrappers.collection.AbstractConverted
getInnerConverter, getOuterConverter, toInner, toOuterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ConvertedCollection
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<VInner>
-
addAll
- Specified by:
addAllin interfaceCollection<VInner>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<VInner>
-
contains
- Specified by:
containsin interfaceCollection<VInner>
-
containsAll
- Specified by:
containsAllin interfaceCollection<VInner>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<VInner>
-
iterator
-
remove
- Specified by:
removein interfaceCollection<VInner>
-
removeAll
- Specified by:
removeAllin interfaceCollection<VInner>
-
retainAll
- Specified by:
retainAllin interfaceCollection<VInner>
-
size
public int size()- Specified by:
sizein interfaceCollection<VInner>
-
toArray
- Specified by:
toArrayin interfaceCollection<VInner>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<VInner>
-