@Test(expectedExceptions = { NullPointerException.class }) public final void errorOnNullStringBuilder() { MantaUtils.endsWith(null, 'c'); }
public static boolean endsWith(final StringBuilder builder, final char match) { Validate.notNull(builder, "StringBuilder object must not be null"); if (builder.length() == 0) { return false; } final char last = builder.subSequence(builder.length() - 1, builder.length()).charAt(0); return last == match; }
MantaUtils { public static boolean endsWith(final StringBuilder builder, final char match) { Validate.notNull(builder, "StringBuilder object must not be null"); if (builder.length() == 0) { return false; } final char last = builder.subSequence(builder.length() - 1, builder.length()).charAt(0); return last == match; } }
MantaUtils { public static boolean endsWith(final StringBuilder builder, final char match) { Validate.notNull(builder, "StringBuilder object must not be null"); if (builder.length() == 0) { return false; } final char last = builder.subSequence(builder.length() - 1, builder.length()).charAt(0); return last == match; } private  MantaUtils(); }
MantaUtils { public static boolean endsWith(final StringBuilder builder, final char match) { Validate.notNull(builder, "StringBuilder object must not be null"); if (builder.length() == 0) { return false; } final char last = builder.subSequence(builder.length() - 1, builder.length()).charAt(0); return last == match; } private  MantaUtils(); static boolean endsWith(final StringBuilder builder, final char match); static String toStringEmptyToNull(final Object value); static Integer parseIntegerOrNull(final Object value); static Boolean parseBooleanOrNull(final Object value); static T parseEnumOrNull(final Object value,
                                                        final Class<T> enumClass); static String formatPath(final String path); static String decodePath(final String encodedPath); static String[] parseAccount(final String account); static String asString(final Object value); static Collection<String> fromCsv(final String line); static String lastItemInPath(final String path); static String[] prefixPaths(final String rawPath); static String[] writeablePrefixPaths(final String rawPath); static Map<String, String> asStringMap(final Map<String, ?> map); static String csv(final Map<?, ?> map); static String csv(final Iterable<?> stringable); static String[] csv2array(final String line); static void attachExceptionsToContext(final ExceptionContext contexted,
                                                 final Iterable<? extends Exception> exceptions); static Date parseHttpDate(final String date); static String byteArrayAsHexString(final byte[] bytes); static Map<K, V> unmodifiableMap(final K key1, final V val1); static Map<K, V> unmodifiableMap(final K key1, final V val1,
                                                   final K key2, final V val2); static Map<K, V> unmodifiableMap(final K key1, final V val1,
                                                   final K key2, final V val2,
                                                   final K key3, final V val3); @SuppressWarnings("unchecked") static Map<K, V> unmodifiableMap(final K key1, final V val1,
                                                   final Object... nPairs); static int overflowToIntMax(final long value); }
MantaUtils { public static boolean endsWith(final StringBuilder builder, final char match) { Validate.notNull(builder, "StringBuilder object must not be null"); if (builder.length() == 0) { return false; } final char last = builder.subSequence(builder.length() - 1, builder.length()).charAt(0); return last == match; } private  MantaUtils(); static boolean endsWith(final StringBuilder builder, final char match); static String toStringEmptyToNull(final Object value); static Integer parseIntegerOrNull(final Object value); static Boolean parseBooleanOrNull(final Object value); static T parseEnumOrNull(final Object value,
                                                        final Class<T> enumClass); static String formatPath(final String path); static String decodePath(final String encodedPath); static String[] parseAccount(final String account); static String asString(final Object value); static Collection<String> fromCsv(final String line); static String lastItemInPath(final String path); static String[] prefixPaths(final String rawPath); static String[] writeablePrefixPaths(final String rawPath); static Map<String, String> asStringMap(final Map<String, ?> map); static String csv(final Map<?, ?> map); static String csv(final Iterable<?> stringable); static String[] csv2array(final String line); static void attachExceptionsToContext(final ExceptionContext contexted,
                                                 final Iterable<? extends Exception> exceptions); static Date parseHttpDate(final String date); static String byteArrayAsHexString(final byte[] bytes); static Map<K, V> unmodifiableMap(final K key1, final V val1); static Map<K, V> unmodifiableMap(final K key1, final V val1,
                                                   final K key2, final V val2); static Map<K, V> unmodifiableMap(final K key1, final V val1,
                                                   final K key2, final V val2,
                                                   final K key3, final V val3); @SuppressWarnings("unchecked") static Map<K, V> unmodifiableMap(final K key1, final V val1,
                                                   final Object... nPairs); static int overflowToIntMax(final long value);  }