码迷,mamicode.com
首页 > 编程语言 > 详细

java BitSet2

时间:2017-07-11 19:23:47      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:star   指定   int end   ext   set   bitset   dex   字符串   extc   

15. int nextClearBit(int startIndex)
返回第一个设置为 false 的位的索引,这发生在指定的起始索引或之后的索引上。

16. int nextSetBit(int startIndex)
返回第一个设置为 true 的位的索引,这发生在指定的起始索引或之后的索引上。

17. void or(BitSet bitSet)
对此位 set 和位 set 参数执行逻辑或操作。

18. void set(int index)
将指定索引处的位设置为 true。

19. void set(int index, boolean v)
 将指定索引处的位设置为指定的值。

20. void set(int startIndex, int endIndex)
将指定的 fromIndex(包括)到指定的 toIndex(不包括)范围内的位设置为 true。

21. void set(int startIndex, int endIndex, boolean v)
将指定的 fromIndex(包括)到指定的 toIndex(不包括)范围内的位设置为指定的值。

22. String toString( )
返回此位 set 的字符串表示形式。

23. 

void xor(BitSet bitSet)
对此位 set 和位 set 参数执行逻辑异或操作。

 

java BitSet2

标签:star   指定   int end   ext   set   bitset   dex   字符串   extc   

原文地址:http://www.cnblogs.com/xiaohai2003ly/p/7151889.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!