|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.Fila<Type>
Type
- tipo do elementopublic class Fila<Type>
Classe que representa uma fila, também conhecida como FIFO (First In, First Out) Consiste em uma lista que devolve primeiro os elementos que entraram primeiro nela
PreProcessador
Constructor Summary | |
---|---|
Fila()
Construtor da classe |
Method Summary | |
---|---|
Type |
consultaPrimeiroDaFila()
Pega o próximo da fila sem remover |
boolean |
filaVazia()
Para verificar se há algum elemento na fila |
void |
insere(Type novo)
Método para enfileirar |
Type |
pegaPrimeiroDaFila()
Pega e remove o próximo da fila |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Fila()
Method Detail |
---|
public void insere(Type novo)
novo
- elemento a entrar na filapublic boolean filaVazia()
public Type pegaPrimeiroDaFila()
public Type consultaPrimeiroDaFila()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |