
com.jtransc.util.JTranscCollections Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt-core Show documentation
Show all versions of jtransc-rt-core Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.util;
import com.jtransc.annotation.JTranscInvisible;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
@JTranscInvisible
public class JTranscCollections {
static public ArrayList distinct(List items) {
return new ArrayList(new LinkedHashSet(items));
}
static public T[] sliceArray(List list, int offset, T[] out) {
List ts = list.subList(offset, offset + out.length);
return ts.toArray(out);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy