koji.developerkit.utils.duplet.DupletList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of developerkit Show documentation
Show all versions of developerkit Show documentation
Koji's Developer kit is a dev kit I made for Minecraft that can make creating things and doing things
within the Minecraft Spigot API easier
package koji.developerkit.utils.duplet;
import java.util.ArrayList;
import java.util.List;
public class DupletList extends ArrayList> {
public boolean add(A a, B b) {
return add(Tuple.of(a, b));
}
public List firstToList() {
List list = new ArrayList<>();
this.forEach(duplet -> list.add(duplet.getFirst()));
return list;
}
public List secondToList() {
List list = new ArrayList<>();
this.forEach(duplet -> list.add(duplet.getSecond()));
return list;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy