Tabnine Logo
AxisRange.max
Code IndexAdd Tabnine to your IDE (free)

How to use
max
method
in
com.carrotsearch.junitbenchmarks.annotation.AxisRange

Best Java code snippets using com.carrotsearch.junitbenchmarks.annotation.AxisRange.max (Showing top 4 results out of 315)

origin: com.carrotsearch/junit-benchmarks

  /**
   * Update min/max fields.
   */
  public void updateMinMax(AxisRange r)
  {
    if (Double.isNaN(this.min))
      this.min = r.min();

    if (!Double.isNaN(r.min()))
    {
      this.min = Math.min(r.min(), this.min);
    }

    if (Double.isNaN(this.max))
      this.max = r.max();

    if (!Double.isNaN(r.max()))
    {
      this.max = Math.max(r.max(), this.max);
    }
  }
}
origin: org.scijava/junit-benchmarks

  /**
   * Update min/max fields.
   */
  public void updateMinMax(AxisRange r)
  {
    if (Double.isNaN(this.min))
      this.min = r.min();

    if (!Double.isNaN(r.min()))
    {
      this.min = Math.min(r.min(), this.min);
    }

    if (Double.isNaN(this.max))
      this.max = r.max();

    if (!Double.isNaN(r.max()))
    {
      this.max = Math.max(r.max(), this.max);
    }
  }
}
origin: com.carrotsearch/junit-benchmarks

public void generate(DbConsumer c) throws Exception
{
  for (Class<?> clazz : types)
  {
    MethodChartGenerator g = new MethodChartGenerator( 
      GeneratorUtils.getFilePrefix(
        clazz, clazz.getAnnotation(BenchmarkMethodChart.class).filePrefix(), c.getChartsDir()),
      clazz.getName(),
      c);
    AxisRange ann = clazz.getAnnotation(AxisRange.class);
    if (ann != null)
    {
      g.min = ann.min();
      g.max = ann.max();
    }
    g.generate();
  }
}
origin: org.scijava/junit-benchmarks

public void generate(DbConsumer c) throws Exception
{
  for (Class<?> clazz : types)
  {
    MethodChartGenerator g = new MethodChartGenerator( 
      GeneratorUtils.getFilePrefix(
        clazz, clazz.getAnnotation(BenchmarkMethodChart.class).filePrefix(), c.getChartsDir()),
      clazz.getName(),
      c);
    AxisRange ann = clazz.getAnnotation(AxisRange.class);
    if (ann != null)
    {
      g.min = ann.min();
      g.max = ann.max();
    }
    g.generate();
  }
}
com.carrotsearch.junitbenchmarks.annotationAxisRangemax

Popular methods of AxisRange

  • min
  • <init>

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JOptionPane (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now