All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.objectfilter.impl.util.StringHelper Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.objectfilter.impl.util;

import org.hibernate.hql.internal.util.Strings;

import java.util.LinkedList;
import java.util.List;

/**
 * @author [email protected]
 * @since 7.0
 */
public final class StringHelper {

   public static String join(String[] array, String separator) {
      return Strings.join(array, separator);
   }

   public static String join(Iterable iterable, String separator) {
      return Strings.join(iterable, separator);
   }

   public static List splitPropertyPath(String propertyPath) {
      List pathAsList = new LinkedList();
      for (String p : propertyPath.split("[.]")) {
         pathAsList.add(p);
      }
      return pathAsList;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy