Java SortedMap Usage isCollectionClass(Class clazz)

Here you can find the source of isCollectionClass(Class clazz)

Description

is Collection Class

License

Apache License

Declaration

private static boolean isCollectionClass(Class<?> clazz) 

Method Source Code

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

import java.util.Collection;

public class Main {
    private static boolean isCollectionClass(Class<?> clazz) {
        return clazz == Collection.class || clazz == java.util.List.class || clazz == java.util.Set.class
                || clazz == java.util.Map.class || clazz == java.util.SortedSet.class // extension to the specs
                || clazz == java.util.SortedMap.class; // extension to the specs
    }/*from   w  w w  .  j ava 2s .  co m*/
}

Related

  1. firstElement(Collection c)
  2. firstElement(Collection c)
  3. generatePropertiesFilter(SortedMap propertiesMap)
  4. getAll(SortedMap map)
  5. getObjectSortedMap(SortedMap map, T key)
  6. lastElement(List c)
  7. pruneStartAndEndKeys(SortedMap setOfStartKeyByteArray, List listOfStartKeyByteArray)
  8. putWeightToBin(SortedMap hist, double bin, double weight)
  9. removeSetFromBulkLm(Set toRemoveSet, List> byteSizeByNameList, String exceptRegex)