--- jsr166/src/main/java/util/AbstractMap.java 2007/05/20 07:54:01 1.24 +++ jsr166/src/main/java/util/AbstractMap.java 2007/09/11 15:13:59 1.25 @@ -1,5 +1,5 @@ /* - * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -340,6 +340,14 @@ public abstract class AbstractMap i return AbstractMap.this.size(); } + public boolean isEmpty() { + return AbstractMap.this.isEmpty(); + } + + public void clear() { + AbstractMap.this.clear(); + } + public boolean contains(Object k) { return AbstractMap.this.containsKey(k); } @@ -388,6 +396,14 @@ public abstract class AbstractMap i return AbstractMap.this.size(); } + public boolean isEmpty() { + return AbstractMap.this.isEmpty(); + } + + public void clear() { + AbstractMap.this.clear(); + } + public boolean contains(Object v) { return AbstractMap.this.containsValue(v); }