Java Set Copy copyFeatureSet(Set o)

Here you can find the source of copyFeatureSet(Set o)

Description

copy Feature Set

License

Apache License

Declaration

static private Set<String> copyFeatureSet(Set<String> o) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    static private Set<String> copyFeatureSet(Set<String> o) {
        Set<String> res = new HashSet<>();
        for (String s : o) {
            res.add(s);/*from   w w w.  ja va2  s.  c om*/
        }
        return res;
    }
}

Related

  1. copy(Set source, Set target)
  2. copy(Set data)
  3. copySet(Set src, Set dest)
  4. copyToSet(Iterable elements)