All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.util.JTranscCollections Maven / Gradle / Ivy

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