Package com.hybris.cockpitng.core.util
Interface CockpitTypeUtils
-
- All Known Implementing Classes:
BackofficeTypeUtils,DefaultTypeUtils
public interface CockpitTypeUtilsProvides methods dealing with types in the cockpit, e.g. socket type compatibility
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringfindClosestSuperType(java.util.List<java.lang.Object> entities)booleanisAssignableFrom(java.lang.String superType, java.lang.String subType)Checks 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)
-
-