Class GroupTypeDescription


  • public class GroupTypeDescription
    extends java.lang.Object
    Generates a description for the type of a group of elements. The description is used in the error message.
    • Field Detail

      • SPLITERATORS_CLASS_STACK_TRACE_NUM

        private static final int SPLITERATORS_CLASS_STACK_TRACE_NUM
        See Also:
        Constant Field Values
      • groupTypeName

        private java.lang.String groupTypeName
      • elementTypeName

        private java.lang.String elementTypeName
    • Constructor Detail

      • GroupTypeDescription

        public GroupTypeDescription​(java.lang.String groupTypeName,
                                    java.lang.String elementTypeName)
    • Method Detail

      • getElementTypeName

        public java.lang.String getElementTypeName()
      • getGroupTypeName

        public java.lang.String getGroupTypeName()
      • getGroupTypeDescription

        public static GroupTypeDescription getGroupTypeDescription​(java.lang.Object actual)
        Creates a new GroupTypeDescription for a group of elements.
        Parameters:
        actual - the group of elements.
        Returns:
        the created GroupTypeDescription object
      • getGroupTypeDescription

        public static GroupTypeDescription getGroupTypeDescription​(java.lang.Class<?> clazz)
        Creates a new GroupTypeDescription for a group of elements.
        Parameters:
        clazz - the class for the group of elements.
        Returns:
        the created GroupTypeDescription object