Package com.levigo.jadice.server.vcf
Class ContextBuilderUtil
- java.lang.Object
-
- com.levigo.jadice.server.vcf.ContextBuilderUtil
-
public class ContextBuilderUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Function<String,String>
capitalizeFirstLetter()
protected static String
createLabelIfNecessary(Stream<String> stringStream, String mainType)
protected static String
createLabelIfNecessary(Stream<String> stringStream, String mainType, String subType)
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.
-
-
-
Method Detail
-
createLabelIfNecessary
protected static String createLabelIfNecessary(Stream<String> stringStream, String mainType)
-
createLabelIfNecessary
protected static String createLabelIfNecessary(Stream<String> stringStream, String mainType, String subType)
-
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
-
-