Class LongsDSL


  • public class LongsDSL
    extends Object
    A Class for creating Long Sources that will produce Longs within a set interval and will shrink within this domain.
    • Constructor Detail

      • LongsDSL

        public LongsDSL()
    • Method Detail

      • from

        public LongsDSL.LongDomainBuilder from​(long startInclusive)
        Constructs a LongDomainBuilder object with an inclusive lower bound
        Parameters:
        startInclusive - - lower bound of domain
        Returns:
        a LongDomainBuilder
      • all

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

        public SolrGen<Long> between​(long startInclusive,
                                     long endInclusive)
        Generates Longs within the interval specified with an inclusive lower and upper bound.

        The Source is weighted, so it is likely to generate the upper and lower limits of the domain one or more times.

        Parameters:
        startInclusive - - inclusive lower bound of domain
        endInclusive - - inclusive upper bound of domain
        Returns:
        a Source of type Long