Java Set sub set subSet(Set nn, T n)

Here you can find the source of subSet(Set nn, T n)

Description

sub Set

License

Open Source License

Declaration

public static <T> Set<T> subSet(Set<T> nn, T n) 

Method Source Code

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

import java.util.*;

public class Main {
    public static <T> Set<T> subSet(Set<T> nn, T n) {
        Set<T> result = new HashSet<T>(nn);
        result.remove(n);//from  www  .  ja  v a2s  .c o  m
        return result;
    }
}

Related

  1. getSubsets(Set set)
  2. split(Set original, int subsetSize)
  3. sub(Set a, Set b)
  4. subset(double[] vals, boolean[] select)
  5. subset(Set sub, Set sup)