Converts the given objects into a set of interned strings contained within an internal pool of sets. See {@link String#intern()}.

@param objects The objects
@return A unmodifiable, pooled set of strings
191971
@SuppressWarnings("unused")
    public static List<String> internListOf(Object... objects) {
        if (objects == null || objects.length == 0) {
            return Collections.emptyList();
        }
        List<String> strings = new ArrayList<>(objects.length);
        for (Object object : objects) {
            strings.add(object.toString().intern());
        }
        return Collections.unmodifiableList(strings);
    }
237205
public void setObjects(Map<String, Object> objects) {
        for (Map.Entry<String, Object> entry: objects.entrySet()) {
            js.put(entry.getKey(), entry.getValue());
        }
    }
1005836
public static String join(String delim, Object... objects) {
    return join(delim, Arrays.asList(objects));
  }
1044742
public static String[] objectListToStringArray(final List<?> objectList) {
		if( objectList == null ) {
			return null;
		}
		
		final String[] stringArray = new String[objectList.size()];
		for( int i = 0; i < objectList.size(); i++ ) {
			stringArray[i] = objectList.get(i) != null ? objectList.get(i).toString() : null;
		}
		
		return stringArray;
	}
946197
@SuppressWarnings("unused")
    public static Map<String, Object> internMapOf(Object... values) {
        if (values == null) {
            return Collections.emptyMap();
        }
        int len = values.length;
        if (len % 2 != 0) {
            throw new IllegalArgumentException("Number of arguments should be an even number representing the keys and values");
        }

        Map<String, Object> answer = new HashMap<>((int) (len / 2 / 0.75));
        int i = 0;
        while (i < values.length - 1) {
            String key = values[i++].toString().intern();
            Object val = values[i++];
            answer.put(key, val);
        }
        return answer;
    }
1164569
public static ArrayJS create(Collection<?> objects, StringifierFactory stringifierFactory) {
		if (objects == null) {
			return null;
		}
		ArrayJS arrayJS = new ArrayJS(objects.size());
		for (Object object : objects) {
			arrayJS.addElement(ObjectJS.create(object, stringifierFactory));
		}
		return arrayJS;
	}
1027700
private List<String> objectKeys(JsonObject obj) {
    List<String> keys = new ArrayList<>();
    for (Map.Entry<String, JsonElement> entry : obj.entrySet()) {
      keys.add(entry.getKey());
    }
    return keys;
  }
1231687
public final String toFFDCString(Object[] objects)
  {
    StringBuffer buffer = new StringBuffer();
    buffer.append('{');
    if (objects == null)
    {
      buffer.append("<null>");
    }
    else
    {
      for (int i = 0; i < objects.length; i++)
      {
        Object value = objects[i];
        buffer.append((value == objects ? "<this array>" : toFFDCStringSingleObject(value)) + lineSeparator);

        if (i > multiple_object_count_to_ffdc)
        {
          buffer.append("........contd");
          break;
        }
      }
    }
    buffer.append('}');

    return buffer.toString();
  }
1087324
public static <T> List<T> toList(T... objects) {
		List<T> list = new Vector<>();
		for (T object : objects) {
			list.add(object);
		}
		return list;
	}
462376
@SuppressWarnings("unchecked")
    public static <T extends Tuple> T create(Object... objects) {
        Class<? extends Tuple> tupleClass = classOfTuple(objects.length);
        try {
            return (T) tupleClass.getMethod("fromArray", Object[].class)
                    .invoke(null, new Object[]{objects});
        } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
            throw BusinessException.wrap(e, BusinessErrorCode.UNABLE_TO_CREATE_TUPLE);
        }
    }
276519
public static final String serializeToString(final Object object) {
    if (object == null)
      throw new IllegalArgumentException("Object was null");
    try {
      return jsonMapper.writeValueAsString(object);
    } catch (JsonProcessingException e) {
      throw new JSONException(e);
    }
  }
927399
public static void internAll(String[] strings) {
        for (int i = 0; i < strings.length; i++) {
            strings[i] = strings[i].intern();
        }
    }
402031
protected final Set<?> set(Object... datas) {
    Set<Object> items = CollectUtils.newHashSet();
    for (Object obj : datas) {
      if (obj instanceof Class<?>) {
        items.add(buildInnerReference((Class<?>) obj));
      } else {
        items.add(obj);
      }
    }
    return items;
  }
1368715
public static JsonArray array(String... strings) {
    if (strings == null) {
      throw new NullPointerException("values is null");
    }
    JsonArray array = new JsonArray();
    for (String value : strings) {
      array.add(value);
    }
    return array;
  }
1042422
public static String[] toStrings(final Object... aVarargs) {
        final String[] strings = new String[aVarargs.length];

        for (int index = 0; index < strings.length; index++) {
            strings[index] = aVarargs[index].toString();
        }

        return strings;
    }
580860
public static String join(String delim, Iterable<?> objects) {
    return join(new StringBuilder(), delim, objects).toString();
  }
187043
protected static final Collection<?> objectToCollection(Object object) {
		Collection<?> collection = null;
		if (object != null) {
			if (object instanceof Collection) {
				collection = (Collection<?>) object;
			} else if (object instanceof Map) {
				collection = ((Map<?, ?>) object).values();
			} else if (object.getClass().isArray()) {
				LinkedList<Object> list = new LinkedList<Object>();
				int len = Array.getLength(object);
				for (int i = 0; i < len; i++) {
					list.addLast(Array.get(object, i));
				}
				collection = list;
			} else {
				collection = Collections.singleton(object);
			}
		}
		return collection;
	}