Interface TypeSystem

All Known Implementing Classes:
DefaultTypeSystem

public interface TypeSystem
TypeSystem defines an interface for detecting whether a given class conforms to a certain Collection contract
Author:
tiwe
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return whether the given class is a collection class
    boolean
    Return whether the given class is a list class
    boolean
    Return whether the given class is a map class
    boolean
    Return whether the given class is a set class
  • Method Details

    • isCollectionType

      boolean isCollectionType(Class<?> cl)
      Return whether the given class is a collection class
      Parameters:
      cl - class to check
      Returns:
      true, if argument is a collection type
    • isSetType

      boolean isSetType(Class<?> cl)
      Return whether the given class is a set class
      Parameters:
      cl - class to check
      Returns:
      true, if argument is a set type
    • isListType

      boolean isListType(Class<?> cl)
      Return whether the given class is a list class
      Parameters:
      cl - class to check
      Returns:
      true, if argument is a list type
    • isMapType

      boolean isMapType(Class<?> cl)
      Return whether the given class is a map class
      Parameters:
      cl - class to check
      Returns:
      true, if argument is a map type