Class BuilderFrameworkSupportUtils


  • public class BuilderFrameworkSupportUtils
    extends java.lang.Object
    A utility class of static methods used in supporting builder-generation frameworks.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String capitalize​(java.lang.String prop)
      Capitalizes the first letter of the given string.
      static boolean isGuavaImmutableType​(javax.lang.model.type.TypeMirror type)
      Returns true if the given type is one of the immutable collections defined in com.google.common.collect.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isGuavaImmutableType

        public static boolean isGuavaImmutableType​(javax.lang.model.type.TypeMirror type)
        Returns true if the given type is one of the immutable collections defined in com.google.common.collect.
        Parameters:
        type - a type
        Returns:
        true if the type is a Guava immutable collection
      • capitalize

        public static java.lang.String capitalize​(java.lang.String prop)
        Capitalizes the first letter of the given string.
        Parameters:
        prop - a String
        Returns:
        the same String, but with the first character capitalized