Tabnine Logo
FloatProcedure
Code IndexAdd Tabnine to your IDE (free)

How to use
FloatProcedure
in
cern.colt.function

Best Java code snippets using cern.colt.function.FloatProcedure (Showing top 6 results out of 315)

origin: com.blazegraph/colt

/**
 * Applies a procedure to each element of the receiver, if any.
 * Starts at index 0, moving rightwards.
 * @param procedure    the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. 
 * @return <tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise. 
 */
public boolean forEach(FloatProcedure procedure) {
  // overridden for performance only.
  float[] theElements = elements;
  int theSize = size;
  
  for (int i=0; i<theSize;) if (! procedure.apply(theElements[i++])) return false;
  return true;
}
/**
origin: blazegraph/database

/**
 * Applies a procedure to each element of the receiver, if any.
 * Starts at index 0, moving rightwards.
 * @param procedure    the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. 
 * @return <tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise. 
 */
public boolean forEach(FloatProcedure procedure) {
  // overridden for performance only.
  float[] theElements = elements;
  int theSize = size;
  
  for (int i=0; i<theSize;) if (! procedure.apply(theElements[i++])) return false;
  return true;
}
/**
origin: org.nuiton.matrix/nuiton-matrix

/**
 * Applies a procedure to each element of the receiver, if any. Starts at
 * index 0, moving rightwards.
 * 
 * @param procedure
 *            the procedure to be applied. Stops iteration if the procedure
 *            returns <tt>false</tt>, otherwise continues.
 * @return <tt>false</tt> if the procedure stopped before all elements where
 *         iterated over, <tt>true</tt> otherwise.
 */
public boolean forEach(FloatProcedure procedure) {
  // overridden for performance only.
  float[] theElements = elements;
  int theSize = size;
  for (int i = 0; i < theSize;)
    if (!procedure.apply(theElements[i++]))
      return false;
  return true;
}
origin: blazegraph/database

/**
 * Applies a procedure to each element of the receiver, if any.
 * Starts at index 0, moving rightwards.
 * @param procedure    the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. 
 * @return <tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise. 
 */
public boolean forEach(FloatProcedure procedure) {
  for (int i=0; i<size;) if (! procedure.apply(get(i++))) return false;
  return true;
}
/**
origin: com.blazegraph/colt

/**
 * Applies a procedure to each element of the receiver, if any.
 * Starts at index 0, moving rightwards.
 * @param procedure    the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. 
 * @return <tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise. 
 */
public boolean forEach(FloatProcedure procedure) {
  for (int i=0; i<size;) if (! procedure.apply(get(i++))) return false;
  return true;
}
/**
origin: org.nuiton.matrix/nuiton-matrix

/**
 * Applies a procedure to each element of the receiver, if any. Starts at
 * index 0, moving rightwards.
 * 
 * @param procedure
 *            the procedure to be applied. Stops iteration if the procedure
 *            returns <tt>false</tt>, otherwise continues.
 * @return <tt>false</tt> if the procedure stopped before all elements where
 *         iterated over, <tt>true</tt> otherwise.
 */
public boolean forEach(FloatProcedure procedure) {
  for (int i = 0; i < size;)
    if (!procedure.apply(get(i++)))
      return false;
  return true;
}
cern.colt.functionFloatProcedure

Javadoc

Interface that represents a procedure object: a procedure that takes a single argument and does not return a value.

Most used methods

  • apply
    Applies a procedure to an argument. Optionally can return a boolean flag to inform the object callin

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
  • Top PhpStorm 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