org.pure4j.collections.TransientQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pure4j-core Show documentation
Show all versions of pure4j-core Show documentation
Pure Functional Programming Semantics For Java
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