Class AbstractSetDecorator<E>
- java.lang.Object
-
- org.apache.openjpa.lib.util.collections.AbstractCollectionDecorator<E>
-
- org.apache.openjpa.lib.util.collections.AbstractSetDecorator<E>
-
- Type Parameters:
E
- the type of the elements in this set
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
- Direct Known Subclasses:
AbstractSerializableSetDecorator
,UnmodifiableEntrySet
public abstract class AbstractSetDecorator<E> extends AbstractCollectionDecorator<E> implements java.util.Set<E>
Decorates anotherSet
to provide additional behaviour.Methods are forwarded directly to the decorated set.
- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSetDecorator()
Constructor only used in deserialization, do not use otherwise.protected
AbstractSetDecorator(java.util.Set<E> set)
Constructor that wraps (not copies).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<E>
decorated()
Gets the set being decorated.boolean
equals(java.lang.Object object)
int
hashCode()
-
Methods inherited from class org.apache.openjpa.lib.util.collections.AbstractCollectionDecorator
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
AbstractSetDecorator
protected AbstractSetDecorator()
Constructor only used in deserialization, do not use otherwise.- Since:
- 3.1
-
AbstractSetDecorator
protected AbstractSetDecorator(java.util.Set<E> set)
Constructor that wraps (not copies).- Parameters:
set
- the set to decorate, must not be null- Throws:
java.lang.NullPointerException
- if set is null
-
-
Method Detail
-
decorated
protected java.util.Set<E> decorated()
Gets the set being decorated.- Overrides:
decorated
in classAbstractCollectionDecorator<E>
- Returns:
- the decorated set
-
equals
public boolean equals(java.lang.Object object)
-
-