Skip to content

gaoxingliang/java-collection-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why I do this project?

I'm trying to do some distinct integer statistics in java and operate it in python.
The python has a package named bitarray while it can't operate with java.util.BitSet
and which it has more constraints like the logical operation must be operated on same length bitset. while the java BitSet doesn't have this constraint.

The java collections in python implementation

So this python implementation, shares same operation and data structures with java impl. Now it includes BitSet

install

pip install javaCollectionInPython

how to use?

see github and the example.py

note

  1. this code works on little endian machines. some code is removed. If needed, it can be easily fixed.
  2. some methods name is changed because of reserved word in python or the same method has different args not support.