88JString = autoclass ('java/lang/String' )
99JListIterator = autoclass ("java.util.ListIterator" )
1010
11- class TestImplemIterator (PythonJavaClass ):
11+ class _TestImplemIterator (PythonJavaClass ):
1212 __javainterfaces__ = [
1313 'java/util/ListIterator' , ]
1414
1515 def __init__ (self , collection , index = 0 ):
16- super (TestImplemIterator , self ).__init__ ()
16+ super (_TestImplemIterator , self ).__init__ ()
1717 self .collection = collection
1818 self .index = index
1919
@@ -54,16 +54,16 @@ def set(self, obj):
5454 self .collection .data [self .index - 1 ] = obj
5555
5656
57- class TestImplem (PythonJavaClass ):
57+ class _TestImplem (PythonJavaClass ):
5858 __javainterfaces__ = ['java/util/List' ]
5959
6060 def __init__ (self , * args ):
61- super (TestImplem , self ).__init__ (* args )
61+ super (_TestImplem , self ).__init__ (* args )
6262 self .data = list (args )
6363
6464 @with_signature (autoclass ("java.util.Iterator" ), [])
6565 def iterator (self ):
66- it = TestImplemIterator (self )
66+ it = _TestImplemIterator (self )
6767 return it
6868
6969 @with_signature (JString , [])
@@ -90,14 +90,14 @@ def toArray(self):
9090
9191 @with_signature (JListIterator , [])
9292 def listIterator (self ):
93- it = TestImplemIterator (self )
93+ it = _TestImplemIterator (self )
9494 return it
9595
9696 # TODO cover this case of listIterator.
9797 @java_method (signature (JListIterator , [jint ]),
9898 name = 'ListIterator' )
9999 def listIteratorI (self , index ):
100- it = TestImplemIterator (self , index )
100+ it = _TestImplemIterator (self , index )
101101 return it
102102
103103
@@ -107,7 +107,7 @@ class SignaturesTest(unittest.TestCase):
107107
108108 def test_construct_stack_from_testimplem (self ):
109109 Stack = autoclass ("java.util.Stack" )
110- pyjlist = TestImplem (1 , 2 , 3 , 4 , 5 , 6 , 7 )
110+ pyjlist = _TestImplem (1 , 2 , 3 , 4 , 5 , 6 , 7 )
111111 stack = Stack ()
112112 stack .addAll (pyjlist )
113113 self .assertEquals (7 , pyjlist .size ())
0 commit comments