Here you can find the source of arrayToSet(Object[] in)
Parameter | Description |
---|---|
in | - non-null arrsy to place |
public static Set arrayToSet(Object[] in)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**{ method/*from w w w. j a va 2 s. co m*/ @name arrayToSet @function convert an @param in - non-null arrsy to place @return non-null set }*/ public static Set arrayToSet(Object[] in) { Set ret = new HashSet(); for (int i = 0; i < in.length; i++) ret.add(in[i]); return (ret); } }