Class BootstrapList
java.lang.Object
com.comphenix.protocol.injector.netty.BootstrapList
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapList(List<Object> delegate, io.netty.channel.ChannelHandler handler)Construct a new bootstrap list. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends Object> c)booleanaddAll(Collection<? extends Object> collection)voidclear()voidclose()Close and revert all changes.booleanbooleancontainsAll(Collection<?> c)get(int index)intbooleanisEmpty()iterator()intlastIndexOf(Object o)listIterator(int index)protected voidprocessBootstrap(io.netty.channel.ChannelFuture future)Process a single channel future.protected voidprocessElement(Object element)Process a single element.remove(int index)booleanbooleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)protected voidunprocessBootstrap(io.netty.channel.ChannelFuture future)Revert any changes we made to the channel future.protected voidunprocessElement(Object element)Unprocess a single element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
BootstrapList
Construct a new bootstrap list.- Parameters:
delegate- - the delegate.handler- - the channel handler to add.
-
-
Method Details
-
add
-
addAll
-
set
-
processElement
Process a single element.- Parameters:
element- - the element.
-
unprocessElement
Unprocess a single element.- Parameters:
element- - the element to unprocess.
-
processBootstrap
protected void processBootstrap(io.netty.channel.ChannelFuture future)Process a single channel future.- Parameters:
future- - the future.
-
unprocessBootstrap
protected void unprocessBootstrap(io.netty.channel.ChannelFuture future)Revert any changes we made to the channel future.- Parameters:
future- - the future.
-
close
public void close()Close and revert all changes. -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<Object>- Specified by:
containsAllin interfaceList<Object>
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Object>
-
listIterator
- Specified by:
listIteratorin interfaceList<Object>
-
listIterator
- Specified by:
listIteratorin interfaceList<Object>
-
subList
-