javaclass

Changeset

93:1df4fc5c93d6
2005-01-08 Paul Boddie raw files shortlog changelog graph Started an inheritance hierarchy for collections resembling that defined in the Java API documentation.
java/util.py (file)
     1.1 --- a/java/util.py	Tue Dec 14 01:54:24 2004 +0100
     1.2 +++ b/java/util.py	Sat Jan 08 23:52:33 2005 +0100
     1.3 @@ -1,5 +1,15 @@
     1.4  #!/usr/bin/env python
     1.5  
     1.6 +# Interfaces.
     1.7 +
     1.8 +class Collection(object):
     1.9 +    pass
    1.10 +
    1.11 +class List(object):
    1.12 +    pass
    1.13 +
    1.14 +# Classes.
    1.15 +
    1.16  class EventObject(object):
    1.17      def __init__(self, source):
    1.18          self.source = source
    1.19 @@ -52,4 +62,13 @@
    1.20          return None
    1.21      getLocale___ = getLocale
    1.22  
    1.23 +class AbstractCollection(Collection):
    1.24 +    pass
    1.25 +
    1.26 +class AbstractList(AbstractCollection, List):
    1.27 +    pass
    1.28 +
    1.29 +class Vector(AbstractList):
    1.30 +    pass
    1.31 +
    1.32  # vim: tabstop=4 expandtab shiftwidth=4