Java BitSet extractLong(BitSet bitSet, int from, int to)

Here you can find the source of extractLong(BitSet bitSet, int from, int to)

Description

extract Long

License

Open Source License

Declaration

public static long extractLong(BitSet bitSet, int from, int to) 

Method Source Code


//package com.java2s;
import java.util.BitSet;

public class Main {
    public static long extractLong(BitSet bitSet, int from, int to) {

        long[] longArray = bitSet.get(from, to).toLongArray();
        long result = 0;
        if (longArray.length > 0) {
            result = longArray[0];//from w w  w.  java 2  s  . c o  m
        }
        return result;
    }
}

Related

  1. encode(BitSet origin, int originBitLength)
  2. encode(String s, BitSet bs)
  3. ensureExclusivity(BitSet bs1, BitSet bs2)
  4. escape(String s, BitSet safeChars)
  5. expand(final BitSet bits, final BitSet add)
  6. extractSetBitsMsgFromTxSet(final BitSet txSet)
  7. filter(double[] data, BitSet mask)
  8. filterByIndices(List list, BitSet filter)
  9. filtered(final Iterator iterator, final BitSet filter)