Interface CockpitTypeUtils

  • All Known Implementing Classes:
    BackofficeTypeUtils, DefaultTypeUtils

    public interface CockpitTypeUtils
    Provides methods dealing with types in the cockpit, e.g. socket type compatibility
    • Method Detail

      • isAssignableFrom

        boolean isAssignableFrom​(java.lang.String superType,
                                 java.lang.String subType)
        Checks type compatibility. Customize it to support additional types other than java classes.
        Parameters:
        superType -
        subType -
        Returns:
        true, if superType is assignable from subType, i.e. if superType really is a supertype of subtype.
      • findClosestSuperType

        default java.lang.String findClosestSuperType​(java.util.List<java.lang.Object> entities)