YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.QueueShareWindow.Lease Class Reference

What one player holds: the shares of the items it plays. More...

Collaboration diagram for de.yaacc.share.QueueShareWindow.Lease:
Collaboration graph

Public Member Functions

boolean moveToItems (Object current, Object next)
 Holds exactly the shares of the two items from now on: what was held before and is not wanted any more is released first, then what is missing is bound.
 
void drop ()
 Releases everything this lease holds; the lease can be used again.
 
boolean isClosed ()
 True once close() was called: the player is gone, a move that fails is no failure of an item.
 
void close ()
 Releases everything and refuses further moves; calling it again does nothing.
 

Detailed Description

What one player holds: the shares of the items it plays.

drop() lets go of everything and the lease can be used again (the player was stopped and may start again); close() is final (the player is gone).

Member Function Documentation

◆ drop()

void de.yaacc.share.QueueShareWindow.Lease.drop ( )

Releases everything this lease holds; the lease can be used again.

Never waits for a bind.

Referenced by de.yaacc.share.QueueShareWindow.Lease.close().

Here is the caller graph for this function:

◆ moveToItems()

boolean de.yaacc.share.QueueShareWindow.Lease.moveToItems ( Object current,
Object next )

Holds exactly the shares of the two items from now on: what was held before and is not wanted any more is released first, then what is missing is bound.

An item that is not part of the queue needs no share (true); null means no item.

Returns
true when the current item is shared or needs no share; false when its share could not be bound or the lease is closed

The documentation for this class was generated from the following file: