Class Value.RegexValue

  • All Implemented Interfaces:
    Value
    Enclosing interface:
    Value

    public static final class Value.RegexValue
    extends Object
    implements Value
    • Constructor Detail

      • RegexValue

        public RegexValue​(Pattern pattern)
        Parameters:
        pattern - the compiled pattern to match with
        Throws:
        NullPointerException - if pattern is null
    • Method Detail

      • get

        public Pattern get()
        Returns:
        the compiled pattern, never null
      • kind

        public ValueKind kind()
        Specified by:
        kind in interface Value
        Returns:
        the discriminator identifying which variant this is