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

How to use
TFloatIntProcedure
in
gnu.trove.procedure

Best Java code snippets using gnu.trove.procedure.TFloatIntProcedure (Showing top 12 results out of 315)

origin: alibaba/mdrill

/** {@inheritDoc} */
public boolean forEachEntry( TFloatIntProcedure procedure ) {
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  for ( int i = keys.length; i-- > 0; ) {
    if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
      return false;
    }
  }
  return true;
}
origin: alibaba/mdrill

/** {@inheritDoc} */
public boolean retainEntries( TFloatIntProcedure procedure ) {
  boolean modified = false;
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: net.sf.trove4j/trove4j

/** {@inheritDoc} */
public boolean forEachEntry( TFloatIntProcedure procedure ) {
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  for ( int i = keys.length; i-- > 0; ) {
    if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
      return false;
    }
  }
  return true;
}
origin: net.sf.trove4j/core

/** {@inheritDoc} */
public boolean forEachEntry( TFloatIntProcedure procedure ) {
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  for ( int i = keys.length; i-- > 0; ) {
    if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
      return false;
    }
  }
  return true;
}
origin: hernad/easyrec

/** {@inheritDoc} */
public boolean forEachEntry( TFloatIntProcedure procedure ) {
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  for ( int i = keys.length; i-- > 0; ) {
    if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
      return false;
    }
  }
  return true;
}
origin: com.palantir.patches.sourceforge/trove3

/** {@inheritDoc} */
@Override
public boolean forEachEntry( TFloatIntProcedure procedure ) {
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  for ( int i = keys.length; i-- > 0; ) {
    if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
      return false;
    }
  }
  return true;
}
origin: net.sf.trove4j/trove4j

/** {@inheritDoc} */
public boolean retainEntries( TFloatIntProcedure procedure ) {
  boolean modified = false;
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: hernad/easyrec

/** {@inheritDoc} */
public boolean retainEntries( TFloatIntProcedure procedure ) {
  boolean modified = false;
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: com.palantir.patches.sourceforge/trove3

/** {@inheritDoc} */
@Override
public boolean retainEntries( TFloatIntProcedure procedure ) {
  boolean modified = false;
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: net.sf.trove4j/core

/** {@inheritDoc} */
public boolean retainEntries( TFloatIntProcedure procedure ) {
  boolean modified = false;
  byte[] states = _states;
  float[] keys = _set;
  int[] values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = keys.length; i-- > 0; ) {
      if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
origin: com.palantir.patches.sourceforge/trove3

/** {@inheritDoc} */
@Override
public boolean forEachEntry( TFloatIntProcedure procedure ) {
  TByteOffheapArray states = _states;
  TFloatOffheapArray keys = _set;
  TIntOffheapArray values = _values;
  for ( int i = capacity(); i-- > 0; ) {
    if ( states.get( i ) == FULL && ! procedure.execute( keys.get( i ), values.get( i ) ) ) {
      return false;
    }
  }
  return true;
}
origin: com.palantir.patches.sourceforge/trove3

/** {@inheritDoc} */
@Override
public boolean retainEntries( TFloatIntProcedure procedure ) {
  boolean modified = false;
  TByteOffheapArray states = _states;
  TFloatOffheapArray keys = _set;
  TIntOffheapArray values = _values;
  // Temporarily disable compaction. This is a fix for bug #1738760
  tempDisableAutoCompaction();
  try {
    for ( int i = capacity(); i-- > 0; ) {
      if ( states.get( i ) == FULL && ! procedure.execute( keys.get( i ), values.get( i) ) ) {
        removeAt( i );
        modified = true;
      }
    }
  }
  finally {
    reenableAutoCompaction( true );
  }
  return modified;
}
gnu.trove.procedureTFloatIntProcedure

Javadoc

Interface for procedures that take two parameters of type float and int.

Most used methods

  • execute
    Executes this procedure. A false return value indicates that the application executing this procedur

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTextField (javax.swing)
  • Best IntelliJ 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