congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BooleanArrays.fill
Code IndexAdd Tabnine to your IDE (free)

How to use
fill
method
in
it.unimi.dsi.fastutil.booleans.BooleanArrays

Best Java code snippets using it.unimi.dsi.fastutil.booleans.BooleanArrays.fill (Showing top 3 results out of 315)

origin: AliView/AliView

/** Creates a new byte-buffer input stream by mapping a given file channel.
 * 
 * @param fileChannel the file channel that will be mapped.
 * @param mapMode this must be {@link MapMode#READ_ONLY}.
 * @return a new byte-buffer input stream over the contents of <code>fileChannel</code>.
 */	
public static ByteBufferInpStream map( final FileChannel fileChannel, final MapMode mapMode ) throws IOException {
  final long size = fileChannel.size();
  final int chunks = (int)( ( size + ( CHUNK_SIZE - 1 ) ) / CHUNK_SIZE );
  final ByteBuffer[] byteBuffer = new ByteBuffer[ chunks ];
  for( int i = 0; i < chunks; i++ ) byteBuffer[ i ] = fileChannel.map( mapMode, i * CHUNK_SIZE, Math.min( CHUNK_SIZE, size - i * CHUNK_SIZE ) );
  byteBuffer[ 0 ].position( 0 );
  final boolean[] readyToUse = new boolean[ chunks ];
  BooleanArrays.fill( readyToUse, true );
  return new ByteBufferInpStream( byteBuffer, size, 0, readyToUse );
}
origin: blazegraph/database

BooleanArrays.fill( removed, false );
System.arraycopy( externalNode, 0, node, 0, size );
int currLevel, leftLevel;
origin: com.blazegraph/dsi-utils

BooleanArrays.fill( removed, false );
System.arraycopy( externalNode, 0, node, 0, size );
int currLevel, leftLevel;
it.unimi.dsi.fastutil.booleansBooleanArraysfill

Javadoc

Fills a portion of the given array with the given value.

If possible (i.e., from is 0) this method uses a backward loop. In this case, it is significantly faster than the corresponding method in java.util.Arrays.

Popular methods of BooleanArrays

  • quickSort
    Sorts the specified range of elements of two arrays according to the natural lexicographical ascendi
  • ensureCapacity
    Ensures that an array can contain the given number of entries, preserving just a part of the array.
  • ensureFromTo
    Ensures that a range given by its first (inclusive) and last (exclusive) elements fits an array. Thi
  • ensureOffsetLength
    Ensures that a range given by an offset and a length fits an array. This method may be used whenever
  • insertionSort
  • med3
  • mergeSort
    Sorts an array according to the order induced by the specified comparator using mergesort. This sort
  • selectionSort
  • swap
  • trim
    Trims the given array to the given length.
  • ensureSameLength
    Ensures that two arrays are of the same length.
  • equals
    Returns true if the two arrays are elementwise equal.
  • ensureSameLength,
  • equals,
  • forceCapacity,
  • grow,
  • insertionSortIndirect,
  • med3Indirect,
  • parallelQuickSort,
  • parallelQuickSortIndirect,
  • quickSortIndirect

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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