Here you can find the source of deepCloneEnumSet(final EnumSet set)
Parameter | Description |
---|---|
set | a parameter |
protected static <T> Set<T> deepCloneEnumSet(final EnumSet set)
//package com.java2s; //License from project: Apache License import java.util.EnumSet; import java.util.Set; public class Main { /**//from w w w . j a v a2 s. c o m * * deepCloneEnumSet * * @param set * @return */ protected static <T> Set<T> deepCloneEnumSet(final EnumSet set) { if (set == null) { return null; } return set.clone(); } }