Skip to content

SachinSPawar/immutables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

immutables

Immutable Queue Implementation In Java

This repository contains immutable implementation of following Queue interface.

	public interface Queue<T> {

      //Adds the element at the end of the immutable queue, and returns the new queue.
	    public Queue<T> enQueue(T t);
	    
      //Removes the element at the beginning of the immutable queue, and returns the new queue.
	    public Queue<T> deQueue();
	    
      //Returns the element at the beginning of the immutable queue.
	    public T head();
	    
      //Returns whehther the queue is empty or not.
	    public boolean isEmpty();
	}
    ```
    

About

Immutable Queue Implementation In Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages