Class Util
java.lang.Object
com.squareup.javapoet.Util
Like Guava, but worse and standalone. This makes it easier to mix JavaPoet with libraries that
bring their own version of Guava.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String(package private) static voidcheckArgument(boolean condition, String format, Object... args) (package private) static <T> TcheckNotNull(T reference, String format, Object... args) (package private) static voidcheckState(boolean condition, String format, Object... args) (package private) static <T> List<T> immutableList(Collection<T> collection) (package private) static <K,V> Map <K, V> immutableMap(Map<K, V> map) immutableMultimap(Map<K, List<V>> multimap) (package private) static <T> Set<T> immutableSet(Collection<T> set) (package private) static voidrequireExactlyOneOf(Set<Modifier> modifiers, Modifier... mutuallyExclusive) (package private) static StringstringLiteralWithDoubleQuotes(String value, String indent) Returns the string literal representingvalue, including wrapping double quotes.(package private) static <T> Set<T>
-
Constructor Details
-
Util
private Util()
-
-
Method Details
-
immutableMultimap
-
immutableMap
-
checkArgument
-
checkNotNull
-
checkState
-
immutableList
-
immutableSet
-
union
-
requireExactlyOneOf
-
characterLiteralWithoutSingleQuotes
-
stringLiteralWithDoubleQuotes
-