net.sf.javagimmicks.collections.composite.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks Show documentation
Show all versions of gimmicks Show documentation
Utility classes, APIs and tools for Java
/**
* 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}
*
*
*
* Operation
* Supported
*
*
*
*
* hasMoreElements()
* supported
*
*
* nextElement()
* supported
*
*
*
*
*
* Operations on a composite {@link java.util.Iterator}
*
*
*
* Operation
* Supported
*
*
*
*
* hasNext()
* supported
*
*
* next()
* supported
*
*
* remove()
* supported
*
*
*
*
*
* Operations on a composite {@link java.util.Collection}
*
*
*
* Operation
* Supported
*
*
*
*
* 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}
*
*
*
* Operation
* Supported
*
*
*
*
* {@link java.util.Iterator} operations
* See 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}
*
*
*
* Operation
* Supported
*
*
*
*
* 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