Class CollectionProxy<U,T extends Collection<U>>
java.lang.Object
org.hibernate.envers.internal.entities.mapper.relation.lazy.proxy.CollectionProxy<U,T>
- All Implemented Interfaces:
Serializable
,Iterable<U>
,Collection<U>
,LazyInitializable
- Direct Known Subclasses:
ListProxy
,SetProxy
,SortedSetProxy
public abstract class CollectionProxy<U,T extends Collection<U>>
extends Object
implements Collection<U>, LazyInitializable, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends U> c) protected void
void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
final void
To be called internally by the session, forcing immediate initialization.int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<V> V[]
toArray
(V[] a) toString()
final boolean
Is this instance initialized?Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
delegate
-
-
Constructor Details
-
CollectionProxy
protected CollectionProxy() -
CollectionProxy
-
-
Method Details
-
checkInit
protected void checkInit() -
wasInitialized
public final boolean wasInitialized()Description copied from interface:LazyInitializable
Is this instance initialized?- Specified by:
wasInitialized
in interfaceLazyInitializable
- Returns:
- Was this collection initialized? Or is its data still not (fully) loaded?
- See Also:
-
forceInitialization
public final void forceInitialization()Description copied from interface:LazyInitializable
To be called internally by the session, forcing immediate initialization.- Specified by:
forceInitialization
in interfaceLazyInitializable
- See Also:
-
size
public int size()- Specified by:
size
in interfaceCollection<U>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<U>
-
contains
- Specified by:
contains
in interfaceCollection<U>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<U>
-
toArray
public <V> V[] toArray(V[] a) - Specified by:
toArray
in interfaceCollection<U>
-
add
- Specified by:
add
in interfaceCollection<U>
-
remove
- Specified by:
remove
in interfaceCollection<U>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<U>
-
addAll
- Specified by:
addAll
in interfaceCollection<U>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<U>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<U>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<U>
-
toString
-
equals
- Specified by:
equals
in interfaceCollection<U>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<U>
- Overrides:
hashCode
in classObject
-