# HG changeset patch # User Paul Boddie # Date 1105224753 -3600 # Node ID 1df4fc5c93d69cd4f3c8b192d15c6a0fbbc3151b # Parent 68c3bfb16cd84bd6b0b80c7193083142ed076a77 Started an inheritance hierarchy for collections resembling that defined in the Java API documentation. diff -r 68c3bfb16cd8 -r 1df4fc5c93d6 java/util.py --- a/java/util.py Tue Dec 14 01:54:24 2004 +0100 +++ b/java/util.py Sat Jan 08 23:52:33 2005 +0100 @@ -1,5 +1,15 @@ #!/usr/bin/env python +# Interfaces. + +class Collection(object): + pass + +class List(object): + pass + +# Classes. + class EventObject(object): def __init__(self, source): self.source = source @@ -52,4 +62,13 @@ return None getLocale___ = getLocale +class AbstractCollection(Collection): + pass + +class AbstractList(AbstractCollection, List): + pass + +class Vector(AbstractList): + pass + # vim: tabstop=4 expandtab shiftwidth=4