Class StringsDSL


  • public class StringsDSL
    extends Object
    The type Strings dsl.
    • Constructor Detail

      • StringsDSL

        public StringsDSL()
    • Method Detail

      • numeric

        public SolrGen<String> numeric()
        Generates integers as Strings, and shrinks towards "0".
        Returns:
        a Source of type String
      • numericBetween

        public SolrGen<String> numericBetween​(int startInclusive,
                                              int endInclusive)
        Generates integers within the interval as Strings.
        Parameters:
        startInclusive - - lower inclusive bound of integer domain
        endInclusive - - upper inclusive bound of integer domain
        Returns:
        a Source of type String
      • allPossible

        public StringsDSL.StringGeneratorBuilder allPossible()
        Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points
        Returns:
        a StringGeneratorBuilder
      • realisticUnicode

        public StringsDSL.RealisticUnicodeGeneratorBuilder realisticUnicode​(int minLength,
                                                                            int maxLength)
        Realistic unicode generator builder. No whitespace.
        Parameters:
        minLength - the min length
        maxLength - the max length
        Returns:
        the realistic unicode generator builder
      • basicMultilingualPlaneAlphabet

        public StringsDSL.StringGeneratorBuilder basicMultilingualPlaneAlphabet()
        Constructs a StringGeneratorBuilder which will build Strings composed of all defined code points in the Basic Multilingual Plane
        Returns:
        a StringGeneratorBuilder
      • basicLatinAlphabet

        public StringsDSL.StringGeneratorBuilder basicLatinAlphabet()
        Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Basic Latin Alphabet
        Returns:
        a StringGeneratorBuilder
      • ascii

        public StringsDSL.StringGeneratorBuilder ascii()
        Constructs a StringGeneratorBuilder which will build Strings composed of Unicode Ascii Alphabet
        Returns:
        a StringGeneratorBuilder
      • betweenCodePoints

        public StringsDSL.StringGeneratorBuilder betweenCodePoints​(int minInclusive,
                                                                   int maxInclusive)
        Strings with characters between two (inclusive) code points
        Parameters:
        minInclusive - minimum code point
        maxInclusive - max code point
        Returns:
        Builder for strings