Class ParameterBuilder.LongBuilder

java.lang.Object
org.moeaframework.analysis.parameter.ParameterBuilder.LongBuilder
Enclosing class:
ParameterBuilder

public static class ParameterBuilder.LongBuilder extends Object
A typed parameter builder for long values.
  • Method Summary

    Modifier and Type
    Method
    Description
    constant(long value)
    Builds a constant parameter with the given value.
    random(long startInclusive, long endInclusive, int count)
    Builds an enumeration of values sampled uniformly at random between the start and end bounds.
    range(long startInclusive, long endInclusive)
    Builds an enumeration of all values between the start and end bounds.
    range(long startInclusive, long endInclusive, long stepSize)
    Builds an enumeration of values between the start and end bounds, incrementing by the given step size.
    rangeExclusive(long startInclusive, long endExclusive)
    Builds an enumeration of all values between the start and end bounds.
    rangeExclusive(long startInclusive, long endExclusive, long stepSize)
    Builds an enumeration of values between the start and end bounds, incrementing by the given step size.
    sampledBetween(long startInclusive, long endInclusive)
    Builds a parameter that samples values uniformly at random between the start and end bounds.
    withValues(long... values)
    Builds an enumeration with the given values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • constant

      public Constant<Long> constant(long value)
      Builds a constant parameter with the given value.
      Parameters:
      value - the constant value
      Returns:
      the parameter
    • withValues

      public Enumeration<Long> withValues(long... values)
      Builds an enumeration with the given values.
      Parameters:
      values - the enumerated values
      Returns:
      the parameter
    • rangeExclusive

      public Enumeration<Long> rangeExclusive(long startInclusive, long endExclusive)
      Builds an enumeration of all values between the start and end bounds.
      Parameters:
      startInclusive - the lower bound (inclusive)
      endExclusive - the upper bound (exclusive)
      Returns:
      the parameter
    • rangeExclusive

      public Enumeration<Long> rangeExclusive(long startInclusive, long endExclusive, long stepSize)
      Builds an enumeration of values between the start and end bounds, incrementing by the given step size.
      Parameters:
      startInclusive - the lower bound (inclusive)
      endExclusive - the upper bound (exclusive)
      stepSize - the step size
      Returns:
      the parameter
    • range

      public Enumeration<Long> range(long startInclusive, long endInclusive)
      Builds an enumeration of all values between the start and end bounds.
      Parameters:
      startInclusive - the lower bound (inclusive)
      endInclusive - the upper bound (inclusive)
      Returns:
      the parameter
    • range

      public Enumeration<Long> range(long startInclusive, long endInclusive, long stepSize)
      Builds an enumeration of values between the start and end bounds, incrementing by the given step size.
      Parameters:
      startInclusive - the lower bound (inclusive)
      endInclusive - the upper bound (inclusive)
      stepSize - the step size
      Returns:
      the parameter
    • random

      public Enumeration<Long> random(long startInclusive, long endInclusive, int count)
      Builds an enumeration of values sampled uniformly at random between the start and end bounds. Unlike sampledBetween(long, long), this produces a fixed enumeration of values.
      Parameters:
      startInclusive - the lower bound (inclusive)
      endInclusive - the upper bound (inclusive)
      count - the number of values to enumerate
      Returns:
      the parameter
    • sampledBetween

      public SampledLong sampledBetween(long startInclusive, long endInclusive)
      Builds a parameter that samples values uniformly at random between the start and end bounds.
      Parameters:
      startInclusive - the lower bound (inclusive)
      endInclusive - the upper bound (inclusive)
      Returns:
      the parameter