All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pure4j.collections.TransientQueue Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package org.pure4j.collections;

import java.util.LinkedList;

public class TransientQueue extends LinkedList implements ITransientQueue {
	
	public TransientQueue() {
		super();
	}
	
	public TransientQueue(ISeq s) {
		for (T t : s) {
			add(t);
		}
	}

	@Override
	public IPersistentCollection persistent() {
		return new PersistentQueue(this.size(), null, new PersistentVector(this));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy