public long getLastSetIndex() { long result = -1; if (longFirstIndex >=0) { result = longFirstIndex; BitArray last = null; for (int lastBitArrayIndex = maxNumberOfArrays -1; lastBitArrayIndex >= 0; lastBitArrayIndex--) { last = list.get(lastBitArrayIndex); if (last != null) { result += last.length() -1; result += lastBitArrayIndex * BitArray.LONG_SIZE; break; } } } return result; } }
public long getLastSetIndex() { long result = -1; if (longFirstIndex >=0) { result = longFirstIndex; BitArray last = null; for (int lastBitArrayIndex = maxNumberOfArrays -1; lastBitArrayIndex >= 0; lastBitArrayIndex--) { last = list.get(lastBitArrayIndex); if (last != null) { result += last.length() -1; result += lastBitArrayIndex * BitArray.LONG_SIZE; break; } } } return result; } }
public long getLastSetIndex() { long result = -1; if (longFirstIndex >=0) { result = longFirstIndex; BitArray last = null; for (int lastBitArrayIndex = maxNumberOfArrays -1; lastBitArrayIndex >= 0; lastBitArrayIndex--) { last = list.get(lastBitArrayIndex); if (last != null) { result += last.length() -1; result += lastBitArrayIndex * BitArray.LONG_SIZE; break; } } } return result; } }
public long getLastSetIndex() { long result = -1; if (longFirstIndex >=0) { result = longFirstIndex; BitArray last = null; for (int lastBitArrayIndex = maxNumberOfArrays -1; lastBitArrayIndex >= 0; lastBitArrayIndex--) { last = list.get(lastBitArrayIndex); if (last != null) { result += last.length() -1; result += lastBitArrayIndex * BitArray.LONG_SIZE; break; } } } return result; } }
public long getLastSetIndex() { long result = -1; if (firstIndex >=0) { result = firstIndex; BitArray last = null; for (int lastBitArrayIndex = maxNumberOfArrays -1; lastBitArrayIndex >= 0; lastBitArrayIndex--) { last = list.get(lastBitArrayIndex); if (last != null) { result += last.length() -1; result += lastBitArrayIndex * BitArray.LONG_SIZE; break; } } } return result; } }