Class ContextBuilderUtil


  • public class ContextBuilderUtil
    extends Object
    • Method Detail

      • createLabelIfNecessary

        protected static String createLabelIfNecessary​(Stream<String> stringStream,
                                                       String mainType)
      • determineMainType

        protected static String determineMainType​(Stream<String> stringStream)
        The main type of a value property (email, phone number etc.) determines in which context the value is categorized. In the end result the main type determine whether the info will be displayed in the work, home or custom section.
        Parameters:
        stringStream - a stream of string values representing the types of the value property
        Returns:
        an optional of the main type