import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.atomic.AtomicLong;
import org.opendaylight.yangtools.concepts.Immutable;
import org.opendaylight.yangtools.concepts.Mutable;
/**
* Determines if object is known to be immutable
- *
+ *
* Note: This method may return false to immutable objects which
* immutability is not known, was defined not using concepts term.
- *
+ *
* @param o
* Reference to check
* @return true if object is known to be immutable false otherwise.
return false;
}
- private static boolean isNumberImmutable(Number o) {
- if(o instanceof AtomicInteger) {
- return false;
- } else if(o instanceof AtomicLong) {
- return false;
- } else if(o instanceof Short) {
- return true;
- }
- return false;
- }
-
@SafeVarargs
private static <E> Set<E> asHashSet(E... list) {
HashSet<E> ret = new HashSet<>();