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 TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends U> c) protected voidvoidclear()booleanbooleancontainsAll(Collection<?> c) booleanfinal voidTo be called internally by the session, forcing immediate initialization.inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<V> V[]toArray(V[] a) toString()final booleanIs this instance initialized?Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:LazyInitializableIs this instance initialized?- Specified by:
wasInitializedin 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:LazyInitializableTo be called internally by the session, forcing immediate initialization.- Specified by:
forceInitializationin interfaceLazyInitializable- See Also:
-
size
public int size()- Specified by:
sizein interfaceCollection<U>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<U>
-
contains
- Specified by:
containsin interfaceCollection<U>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<U>
-
toArray
public <V> V[] toArray(V[] a) - Specified by:
toArrayin interfaceCollection<U>
-
add
- Specified by:
addin interfaceCollection<U>
-
remove
- Specified by:
removein interfaceCollection<U>
-
containsAll
- Specified by:
containsAllin interfaceCollection<U>
-
addAll
- Specified by:
addAllin interfaceCollection<U>
-
removeAll
- Specified by:
removeAllin interfaceCollection<U>
-
retainAll
- Specified by:
retainAllin interfaceCollection<U>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<U>
-
toString
-
equals
- Specified by:
equalsin interfaceCollection<U>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<U>- Overrides:
hashCodein classObject
-