Class IntegersDSL


  • public class IntegersDSL
    extends Object
    The type Integers dsl.
    • Constructor Detail

      • IntegersDSL

        public IntegersDSL()
    • Method Detail

      • from

        public IntegersDSL.IntegerDomainBuilder from​(int startInclusive)
        Constructs a IntegerDomainBuilder object with an inclusive lower bound
        Parameters:
        startInclusive - - lower bound of domain
        Returns:
        an IntegerDomainBuilder
      • all

        public SolrGen<Integer> all()
        Generates all possible integers in Java bounded below by Integer.MIN_VALUE and above by Integer.MAX_VALUE.
        Returns:
        a Source of type Integer
      • allWithMaxCardinality

        public SolrGen<Integer> allWithMaxCardinality​(int maxCardinality)
        All with max cardinality solr gen.
        Parameters:
        maxCardinality - the max cardinality
        Returns:
        the solr gen
      • allPositive

        public SolrGen<Integer> allPositive()
        Generates all possible positive integers in Java, bounded above by Integer.MAX_VALUE.
        Returns:
        a Source of type Integer
      • allPositiveWithMaxCardinality

        public SolrGen<Integer> allPositiveWithMaxCardinality​(int maxCardinality)
        All positive with max cardinality solr gen.
        Parameters:
        maxCardinality - the max cardinality
        Returns:
        the solr gen
      • incrementing

        public SolrGen<Integer> incrementing()
        Incrementing SolrGen. Always returns an integer greater than the previous one. You cannot count on the increment being 1.
        Returns:
        a SolrGen that returns an int greater than the previous
      • between

        public SolrGen<Integer> between​(int startInclusive,
                                        int endInclusive)
        Generates Integers within the interval specified with an inclusive lower and upper bound.
        Parameters:
        startInclusive - - inclusive lower bound of domain
        endInclusive - - inclusive upper bound of domain
        Returns:
        a Source of type Integer
      • between

        public SolrGen<Integer> between​(int startInclusive,
                                        int endInclusive,
                                        int maxCardinality)
        Generates Integers within the interval specified with an inclusive lower and upper bound.
        Parameters:
        startInclusive - - inclusive lower bound of domain
        endInclusive - - inclusive upper bound of domain
        maxCardinality - the max cardinality
        Returns:
        a Source of type Integer