com.github.rkmk.container.FoldingList Maven / Gradle / Ivy
package com.github.rkmk.container;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class FoldingList implements Iterable{
private List list;
public FoldingList(List list) {
this.list = list;
}
public FoldingList() {
this.list = new ArrayList<>();
}
@Override
public Iterator iterator() {
return list.iterator();
}
public void add(T object) {
list.add(object);
}
public List getValues(){
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy