/** * Merges the elements of the character array into a string representing a * comma delimited list of its values. * * @param array the characters to merge * @return a string representing a comma delimited list of the values of the * character array, an empty string if the array is empty, or * <code>null</code> if the array is <code>null</code> */ public static String merge(char[] array) { return merge(array, StringPool.COMMA); }
/** * Merges the elements of an array of decimal numbers into a string * representing a comma delimited list of its values. * * @param array the floats to merge * @return a string representing a comma delimited list of the values of the * array of decimal numbers, an empty string if the array is empty, * or <code>null</code> if the array is <code>null</code> */ public static String merge(float[] array) { return merge(array, StringPool.COMMA); }
/** * Merges the elements of the boolean array into a string representing a * comma delimited list of its values. * * @param array the boolean values to merge * @return a string representing a comma delimited list of the values of the * boolean array, an empty string if the array is empty, or * <code>null</code> if the array is <code>null</code> */ public static String merge(boolean[] array) { return merge(array, StringPool.COMMA); }
/** * Merges the elements of an array of objects into a string representing a * comma delimited list of the objects. * * @param array the objects to merge * @return a string representing a comma delimited list of the objects, an * empty string if the array is empty, or <code>null</code> if the * array is <code>null</code> */ public static String merge(Object[] array) { return merge(array, StringPool.COMMA); }
/** * Merges the elements of an array of short integers by returning a string * representing a comma delimited list of its values. * * @param array the short integers to merge * @return a string representing a comma delimited list of the values of the * array of short integers, an empty string if the array is empty, * or <code>null</code> if the array is <code>null</code> */ public static String merge(short[] array) { return merge(array, StringPool.COMMA); }
public java.lang.String merge(java.lang.Object[] array, java.lang.String delimiter) { return StringUtil.merge(array, delimiter); }
/** * Merges the elements of the collection by returning a string representing * a comma delimited list of its values. * * @param col the collection of objects * @return the merged collection elements, or <code>null</code> if the * collection is <code>null</code> */ public static String merge(Collection<?> col) { return merge(col, StringPool.COMMA); }
/** * Merges the elements of an array of long integers by returning a string * representing a comma delimited list of its values. * * @param array the long integers to merge * @return a string representing a comma delimited list of the values of the * array of long integers, an empty string if the array is empty, or * <code>null</code> if the array is <code>null</code> */ public static String merge(long[] array) { return merge(array, StringPool.COMMA); }
public java.lang.String merge(long[] array) { return StringUtil.merge(array); }
public java.lang.String merge(long[] array, java.lang.String delimiter) { return StringUtil.merge(array, delimiter); }
public static String getNameReservedWords(String[] nameBlacklist) { return StringPool.NULL + StringPool.COMMA_AND_SPACE + StringUtil.merge(nameBlacklist, StringPool.COMMA_AND_SPACE); }
public MustNotBeReserved( String emailAddress, String[] reservedEmailAddresses) { super( String.format( "Email address %s must not be a reserved one such as: %s", emailAddress, StringUtil.merge(reservedEmailAddresses))); this.emailAddress = emailAddress; this.reservedEmailAddresses = reservedEmailAddresses; }
public MustNotBeReservedForAnonymous( long userId, String screenName, String[] reservedScreenNames) { super( String.format( "Screen name %s for user %s must not be a reserved name " + "for anonymous users such as: %s", screenName, userId, StringUtil.merge(reservedScreenNames))); this.userId = userId; this.screenName = screenName; this.reservedScreenNames = reservedScreenNames; }
public MustBeEnabled(long companyId, String... resourceName) { super( String.format( "%s must be enabled for company %s", StringUtil.merge(resourceName, ","), companyId)); this.companyId = companyId; this.resourceName = resourceName; }
public MustNotBeReserved(long userId, String[] reservedUserIds) { super( String.format( "User ID %s must not be a reserved one such as: %s", userId, StringUtil.merge(reservedUserIds))); this.userId = userId; this.reservedUserIds = reservedUserIds; }
public MustHavePermission( long userId, String resourceName, long resourceId, Throwable cause, String... actionIds) { super( String.format( "User %s must have %s permission for %s %s", userId, StringUtil.merge(actionIds, ","), resourceName, (resourceId == 0) ? "" : resourceId), cause); this.userId = userId; this.resourceName = resourceName; this.resourceId = resourceId; actionId = actionIds; }
@Override public String getOrderBy() { return StringUtil.merge( ListUtil.toList(_orderByComparators, OrderByComparator::getOrderBy), StringPool.COMMA); }
public static String encode(Object obj) { Class<?> clazz = obj.getClass(); if (!clazz.isArray()) { return encode(String.valueOf(obj)); } Object[] array = (Object[])obj; return encode(StringUtil.merge(array)); }
protected void registerPortalProperty(String key) { Registry registry = RegistryUtil.getRegistry(); Map<String, Object> properties = new HashMap<>(); String[] values = PropsUtil.getArray(key); properties.put(key, values); ServiceRegistration<Object> serviceRegistration = registry.registerService(Object.class, new Object(), properties); serviceRegistrations.put(StringUtil.merge(values), serviceRegistration); }