Skip to content

Instantly share code, notes, and snippets.

@Apondi
Created June 5, 2018 09:21
Show Gist options
  • Save Apondi/66e5cedd7d2f3e3c4eee59a05f77db05 to your computer and use it in GitHub Desktop.
Save Apondi/66e5cedd7d2f3e3c4eee59a05f77db05 to your computer and use it in GitHub Desktop.
Queue Interface
/*
* 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