public class DelayedPriorityQueueProxy extends PriorityQueue implements ProxyCollection, DelayedProxy
Constructor and Description |
---|
DelayedPriorityQueueProxy() |
DelayedPriorityQueueProxy(Collection paramCollection) |
DelayedPriorityQueueProxy(int paramInt) |
DelayedPriorityQueueProxy(int paramInt,
Comparator paramComparator) |
DelayedPriorityQueueProxy(PriorityQueue paramPriorityQueue) |
DelayedPriorityQueueProxy(SortedSet paramSortedSet) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object paramObject) |
boolean |
addAll(Collection paramCollection) |
void |
clear() |
Object |
clone() |
void |
closeBroker()
Close the broker that is used to service this proxy.
|
boolean |
contains(Object object) |
boolean |
containsAll(Collection c) |
Object |
copy(Object paramObject)
Return an unproxied copy of the given instance.
|
Object |
element() |
boolean |
equals(Object paramObject) |
Broker |
getBroker()
Get the broker that is used to service this proxy.
|
BrokerFactory |
getBrokerFactory() |
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none.
|
int |
getDelayedField()
Returns the expected field index even if this collection
was detached.
|
OpenJPAStateManager |
getDelayedOwner()
Returns a state manager that can service this proxy even if
the collection was detached.
|
Class |
getElementType()
The collection element type.
|
OpenJPAStateManager |
getOwner()
Return the owning object.
|
int |
getOwnerField()
Return the owning field index.
|
OpenJPAStateManager |
getOwnerStateManager()
Returns the state manager of the owning instance.
|
int |
hashCode() |
boolean |
isDelayLoad() |
boolean |
isDetached()
Returns whether the proxy is detached.
|
boolean |
isDirectAccess()
Returns whether the caller has direct-call access to the proxied
object.
|
boolean |
isEmpty() |
Iterator |
iterator() |
void |
load()
Load the proxy if it was delay-loaded.
|
ProxyCollection |
newInstance(Class paramClass,
Comparator paramComparator,
boolean paramBoolean1,
boolean paramBoolean2)
Create a new instance of this proxy type.
|
boolean |
offer(Object paramObject) |
Object |
peek() |
Object |
poll() |
Object |
remove() |
boolean |
remove(Object paramObject) |
boolean |
removeAll(Collection paramCollection) |
boolean |
retainAll(Collection paramCollection) |
protected void |
setChangeTracker(CollectionChangeTracker ct) |
void |
setDirectAccess(boolean direct)
Sets whether the caller has direct-call access to the proxied
object.
|
protected void |
setElementType(Class<?> elemType) |
void |
setOwner(OpenJPAStateManager paramOpenJPAStateManager,
int paramInt)
Reset the state of the proxy, and set the owning instance of the
proxy and the name of the field it is assigned to.
|
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] array) |
protected Object |
writeReplace() |
comparator, spliterator
toString
finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, removeIf, spliterator, stream
public DelayedPriorityQueueProxy(int paramInt)
public DelayedPriorityQueueProxy(int paramInt, Comparator paramComparator)
public DelayedPriorityQueueProxy(Collection paramCollection)
public DelayedPriorityQueueProxy(PriorityQueue paramPriorityQueue)
public DelayedPriorityQueueProxy(SortedSet paramSortedSet)
public DelayedPriorityQueueProxy()
public void setOwner(OpenJPAStateManager paramOpenJPAStateManager, int paramInt)
Proxy
public OpenJPAStateManager getOwner()
Proxy
public int getOwnerField()
Proxy
getOwnerField
in interface Proxy
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public ChangeTracker getChangeTracker()
Proxy
getChangeTracker
in interface Proxy
protected void setChangeTracker(CollectionChangeTracker ct)
public Object copy(Object paramObject)
Proxy
public Class getElementType()
ProxyCollection
getElementType
in interface ProxyCollection
protected void setElementType(Class<?> elemType)
public ProxyCollection newInstance(Class paramClass, Comparator paramComparator, boolean paramBoolean1, boolean paramBoolean2)
ProxyCollection
newInstance
in interface ProxyCollection
public boolean add(Object paramObject)
add
in interface Collection
add
in interface Queue
add
in class PriorityQueue
public void clear()
clear
in interface Collection
clear
in class PriorityQueue
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in class PriorityQueue
public boolean remove(Object paramObject)
remove
in interface Collection
remove
in class PriorityQueue
public Object poll()
poll
in interface Queue
poll
in class PriorityQueue
public boolean offer(Object paramObject)
offer
in interface Queue
offer
in class PriorityQueue
public boolean addAll(Collection paramCollection)
addAll
in interface Collection
addAll
in class AbstractQueue
public Object remove()
remove
in interface Queue
remove
in class AbstractQueue
public boolean removeAll(Collection paramCollection)
removeAll
in interface Collection
removeAll
in class AbstractCollection
public boolean retainAll(Collection paramCollection)
retainAll
in interface Collection
retainAll
in class AbstractCollection
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
public int size()
size
in interface Collection
size
in class PriorityQueue
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in class AbstractCollection
public boolean contains(Object object)
contains
in interface Collection
contains
in class PriorityQueue
public Object[] toArray()
toArray
in interface Collection
toArray
in class PriorityQueue
public Object[] toArray(Object[] array)
toArray
in interface Collection
toArray
in class PriorityQueue
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in class AbstractCollection
public Object element()
element
in interface Queue
element
in class AbstractQueue
public Object peek()
peek
in interface Queue
peek
in class PriorityQueue
public boolean equals(Object paramObject)
equals
in interface Collection
equals
in class Object
public int hashCode()
hashCode
in interface Collection
hashCode
in class Object
public int getDelayedField()
DelayedProxy
getDelayedField
in interface DelayedProxy
public OpenJPAStateManager getDelayedOwner()
DelayedProxy
getDelayedOwner
in interface DelayedProxy
public boolean isDirectAccess()
DelayedProxy
isDirectAccess
in interface DelayedProxy
public void setDirectAccess(boolean direct)
DelayedProxy
setDirectAccess
in interface DelayedProxy
public BrokerFactory getBrokerFactory()
public void load()
DelayedProxy
load
in interface DelayedProxy
public Broker getBroker()
DelayedProxy
getBroker
in interface DelayedProxy
public void closeBroker()
DelayedProxy
closeBroker
in interface DelayedProxy
public OpenJPAStateManager getOwnerStateManager()
DelayedProxy
getOwnerStateManager
in interface DelayedProxy
public boolean isDetached()
DelayedProxy
isDetached
in interface DelayedProxy
public boolean isDelayLoad()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.