|
|||||||||
| Atavism Version 2018.1 | AGIS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatavism.server.util.SquareQueue<K,V>
public class SquareQueue<K,V>
| Nested Class Summary | |
|---|---|
class |
SquareQueue.SubQueue
|
| Field Summary | |
|---|---|
protected java.lang.String |
name
|
protected java.util.LinkedList<SquareQueue.SubQueue> |
queue
|
protected java.util.HashMap<K,SquareQueue.SubQueue> |
subQueues
|
| Constructor Summary | |
|---|---|
SquareQueue(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
protected boolean |
getNext(SquareQueue.SubQueue subQueue)
|
int |
getSQSize()
|
protected int |
getSubQueueSize(SquareQueue.SubQueue subQueue)
|
void |
insert(K key,
V value)
|
void |
insert(java.util.List<K> keys,
V value)
|
static void |
main(java.lang.String[] args)
|
protected SquareQueue.SubQueue |
newSubQueue(K key)
|
SquareQueue.SubQueue |
remove()
|
void |
removeKey(K key)
|
void |
requeue(SquareQueue.SubQueue subQueue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<K,SquareQueue.SubQueue> subQueues
protected java.util.LinkedList<SquareQueue.SubQueue> queue
protected java.lang.String name
| Constructor Detail |
|---|
public SquareQueue(java.lang.String name)
| Method Detail |
|---|
public void insert(K key,
V value)
public void insert(java.util.List<K> keys,
V value)
public SquareQueue.SubQueue remove()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void requeue(SquareQueue.SubQueue subQueue)
public void removeKey(K key)
public int getSQSize()
public java.lang.String getName()
protected boolean getNext(SquareQueue.SubQueue subQueue)
protected int getSubQueueSize(SquareQueue.SubQueue subQueue)
protected SquareQueue.SubQueue newSubQueue(K key)
public static void main(java.lang.String[] args)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||