Class ValuePatternUtil


  • public final class ValuePatternUtil
    extends java.lang.Object
    • Constructor Detail

      • ValuePatternUtil

        public ValuePatternUtil()
    • Method Detail

      • getLongestPrefix

        @Nullable
        public static @Nullable java.lang.String getLongestPrefix​(Filter filter,
                                                                  java.lang.String property)
        Get the longest prefix of restrictions on a property.
        Parameters:
        filter - the filter with all restrictions
        property - the property
        Returns:
        the longest prefix, or null if none
      • getAllValues

        @Nullable
        public static @Nullable java.util.Set<java.lang.String> getAllValues​(Filter.PropertyRestriction restriction)
      • read

        @Nullable
        public static @Nullable java.util.Set<java.lang.String> read​(PropertyValue value,
                                                                     ValuePattern pattern)