[英]Difference between this Bits class and Bitset
我对LibGDX库中的Bits类与标准Java库中的BitSet类之间的区别有疑问。 是建立Bits类以更快地处理按位运算还是提高内存效率?
我相信这是该课程的源头。 这是BitSet的来源。 乍一看,它们非常相似; 他们都得到long[]的支持。 我不希望性能有任何特别的提高。 可以使用任何您喜欢的方式,尽管我更倾向于将JDK实现作为标准。
BitSet
long[]
奇怪的是,该类甚至没有提到JDK的BitSet (例如“此类实例在这种情况下比BitSet更好/更差”),这使我想知道实现者是否根本没有在寻找此类东西。创建它们之前,在JDK中创建一个类。
[英]How to modify individual bits of a BitSet Class object
[英]BitSet sometimes drops Bits
[英]How to print BitSet as series of bits
[英]What's the difference between these two bits of code?
[英]Difference between Class and Class<?>
[英]Is it possible to set bits while creating a BitSet?
[英]Get all Indexes of the set bits in a BitSet
[英]Writing Bits to a file using BitSet & FileOutputStream
[英]How to shift bits to left and right in BitSet JAVA?
[英]BitSet only grows with true bits and not false?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.