Java Vector to toHashSetD(Vector vec)

Here you can find the source of toHashSetD(Vector vec)

Description

to Hash Set D

License

Open Source License

Declaration

public static HashSet<Double> toHashSetD(Vector<Double> vec) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static HashSet<Double> toHashSetD(Vector<Double> vec) {
        HashSet<Double> hashSet = new HashSet<Double>();
        for (Double s : vec) {
            hashSet.add(s);//from  ww  w .  ja  va 2 s.  c  om
        }
        return hashSet;
    }
}

Related

  1. toArray(Vector v)
  2. toEnumeration(Vector options)
  3. toHashSet(Vector vector)
  4. toIntArray(Vector vec)
  5. toIntArray(Vector vect)
  6. toPercent(Vector members, HashMap mapMemberToValue)
  7. vector2doubles(Vector _v)