All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.javagimmicks.collections.composite.package-info Maven / Gradle / Ivy

There is a newer version: 0.99-alpha1
Show newest version
/**
 * Provides composite implementations for the most
 * important Collection API types. A composite collection
 * is one that wraps around any number of other collections
 * but providing them behind a single instance interface.
 * 

* Instances cannot be directly instantiated, instead * {@link net.sf.javagimmicks.collections.composite.CompositeUtils} * can be used to wrap a collection of the respective type * around any number of the same type (using a kind of decorator * pattern) *

* *

Operations on a composite {@link java.util.Enumeration}

* * * * * * * * * * * * * * * * * *
OperationSupported
hasMoreElements()supported
nextElement()supported
* * *

Operations on a composite {@link java.util.Iterator}

* * * * * * * * * * * * * * * * * * * * * *
OperationSupported
hasNext()supported
next()supported
remove()supported
* * *

Operations on a composite {@link java.util.Collection}

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
OperationSupported
add()not supported
addAll()not supported
clear()supported
contains()supported; needs {@code equals()} method on elements
containsAll()supported; needs {@code equals()} method on elements
isEmpty()supported
iterator()supported; See {@code Iterator} operations
remove()supported; needs {@code equals()} method on elements
removeAll()supported; needs {@code equals()} method on elements
retainAll()supported; needs {@code equals()} method on elements
size()supported
toArray()supported
* * *

Operations on a transformed {@link java.util.ListIterator}

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
OperationSupported
{@link java.util.Iterator} operationsSee table for {@code Iterator} operations
add()supported
hasPrevious()supported
nextIndex()supported
previous()supported
previousIndex()supported
set()supported
* * *

Operations on a composite {@link java.util.List}

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
OperationSupported
add()not supported
addAll()not supported
clear()supported
contains()supported; needs {@code equals()} method
containsAll()supported; needs {@code equals()} method
isEmpty()supported
iterator()supported; See {@code Iterator} operations
remove()supported; needs {@code equals()} method
removeAll()supported; needs {@code equals()} method
retainAll()supported; needs {@code equals()} method
size()supported
toArray()supported
* @author Michael Scholz */ package net.sf.javagimmicks.collections.composite;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy