Class BuilderFrameworkSupportUtils

java.lang.Object
org.checkerframework.checker.calledmethods.builder.BuilderFrameworkSupportUtils

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

    • isGuavaImmutableType

      public static boolean isGuavaImmutableType(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 String capitalize(String prop)
      Capitalizes the first letter of the given string.
      Parameters:
      prop - a String
      Returns:
      the same String, but with the first character capitalized