Class TreeUtils


  • public class TreeUtils
    extends java.lang.Object
    Provides useful functionalities for zk trees, especially for searching within treenodes.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean matchCamelCase​(java.lang.String value, java.lang.String searchString)
      Camelcase string matching.
      static boolean matchFilterString​(java.lang.Object data, java.lang.String filterString, boolean camelCase)
      Checks, if argument data can be represented by argument filterString, i.e.
      static boolean matchFilterStringSimple​(java.lang.String value, java.lang.String filterString)
      Checks, if argument value starts (case-insensitive) with argument filterString.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeUtils

        public TreeUtils()
    • Method Detail

      • matchCamelCase

        public static boolean matchCamelCase​(java.lang.String value,
                                             java.lang.String searchString)
        Camelcase string matching.
        Parameters:
        value - the string that should be checked.
        searchString - the "camelcased" search string.
        Returns:
        true, if the search string is a camelcase representation of the value.
      • matchFilterStringSimple

        public static boolean matchFilterStringSimple​(java.lang.String value,
                                                      java.lang.String filterString)
        Checks, if argument value starts (case-insensitive) with argument filterString.
      • matchFilterString

        public static boolean matchFilterString​(java.lang.Object data,
                                                java.lang.String filterString,
                                                boolean camelCase)
        Checks, if argument data can be represented by argument filterString, i.e. it first checks, if data is a String, then invokes matchFilterString(Object, String, boolean) and optionally invokes matchCamelCase(String, String), depending on argument camelCase.