public class JDKCollectionAdapter<C extends Collection> extends ElementContainerAdapter<C>
container
Constructor and Description |
---|
JDKCollectionAdapter(C container) |
Modifier and Type | Method and Description |
---|---|
void |
add(Object newElement) |
void |
clear() |
C |
getContainer() |
Iterator<Object> |
iterator() |
void |
remove(Object element) |
setContainer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public JDKCollectionAdapter(C container)
public C getContainer()
getContainer
in interface ContainerAdapter<C extends Collection>
getContainer
in class ElementContainerAdapter<C extends Collection>
public void clear()
public void add(Object newElement)
add
in class ElementContainerAdapter<C extends Collection>
public void remove(Object element)
remove
in class ElementContainerAdapter<C extends Collection>
Copyright © 2018. All rights reserved.