Java BitSet Create bitSetOfIndexes(int... indexes)

Here you can find the source of bitSetOfIndexes(int... indexes)

Description

bit Set Of Indexes

License

Open Source License

Declaration

public static BitSet bitSetOfIndexes(int... indexes) 

Method Source Code

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

public class Main {
    public static BitSet bitSetOfIndexes(int... indexes) {
        BitSet bitSet = new BitSet();
        for (int index : indexes) {
            bitSet.set(index);/*from   ww  w. j a v a2  s.com*/
        }
        return bitSet;
    }
}

Related

  1. bitSetFrom(long number)
  2. bitsetFromIndices(int size, int... indices)
  3. bitsetFromString(String pixelsString)
  4. bitSetOf(long lowerBits, long upperBits)
  5. bitSetOf(String inString)
  6. Byte2BitSet(byte bytes)
  7. byte2BitSet(byte[] b, int offset, boolean bitZeroMeansExtended)
  8. byte2BitSet(byte[] b, int offset, int maxBits)
  9. convert(final long value)