@Override public String toString() { return item + "[" + StringUtils.join(transitions, ",") + "]"; } }
public static String getPrefix(Iterable<String> items) { return getPrefix(items, new Function<String, String>() { public String apply(String item) { return item; } }); }
/** * Converts the string into a safe field name. * @param name The field name. * @return The safe field name. */ public static final String toFieldName(String name) { return compact(prefixKeywords(name)); }
/** * Find the getter of the specified property in the type. * @param clazz The class. * @param property The property. * @return The getter method if found. Throws exception if no getter is matched. */ public static Method find(TypeDef clazz, Property property) { return find(clazz, property, false); }
/** * Checks if the specified method is a getter. * @param method The specified method. * @return True if getter, false otherwise. */ public static boolean is(Method method) { return is(method, false); }
public String apply(Property item) { return "fluent." + Getter.name(item) + "()"; } }, ","))
public JavaType apply(JavaType item) { return typeGenericOf(Constants.ARRAY_LIST, item); }
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, OPTIONAL, IS_OPTIONAL); } });
private static boolean isApplicable(Method method, Property property) { return isApplicable(method, property, false, false); }
public static boolean isApplicable(Method method, Property property) { return isApplicable(method, property, false); }
public static String toInterfaceName(String name) { if (name.endsWith(INTERFACE_SUFFIX)) { return name; } return captializeFirst(name) + INTERFACE_SUFFIX; }
@Override public String toString() { return item + "[" + StringUtils.join(transitions, ",") + "]"; } }
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, MAP, IS_MAP); } });
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, OPTIONAL_INT, IS_OPTIONAL_INT); } });
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, OPTIONAL_LONG, IS_OPTIONAL_LONG); } });
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, SET, IS_SET); } });
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, OPTIONAL_DOUBLE, IS_OPTIONAL_DOUBLE); } });
public Boolean apply(TypeRef type) { return TypeUtils.isInstanceOf(type, LIST, IS_LIST); } });