com.nls.util.TripletList Maven / Gradle / Ivy
The newest version!
package com.nls.util;
import java.util.ArrayList;
import java.util.Collection;
public class TripletList extends ArrayList> {
public TripletList() {
super();
}
public TripletList(Collection extends Triplet> collection) {
super(collection);
}
public boolean add(T v1, U v2, V v3) {
return add(new Triplet<>(v1, v2, v3));
}
public void add(int index, T v1, U v2, V v3) {
add(index, new Triplet<>(v1, v2, v3));
}
public boolean contains(T v1, U v2, V v3) {
return super.contains(new Triplet<>(v1, v2, v3));
}
public int indexOf(T v1, U v2, V v3) {
return super.indexOf(new Triplet<>(v1, v2, v3));
}
public Triplet set(int index, T v1, U v2, V v3) {
return super.set(index, new Triplet<>(v1, v2, v3));
}
public boolean remove(T v1, U v2, V v3) {
return super.remove(new Triplet<>(v1, v2, v3));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy