Created
June 5, 2018 09:21
-
-
Save Apondi/66e5cedd7d2f3e3c4eee59a05f77db05 to your computer and use it in GitHub Desktop.
Queue Interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package queue; | |
/** | |
* | |
* @author Apondi Kevin Omondi | |
* @param <T> | |
*/ | |
public interface QueueInterface<T> { | |
void enqueque(); | |
/** | |
* | |
* @param Object | |
*/ | |
void dequeue(T Object); | |
void clear(); | |
/** | |
* | |
* @param Object | |
* @return | |
*/ | |
boolean contains(T Object); | |
//returns the object at the front of the queue without removing it | |
T Peek(); | |
boolean empty(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment