1 25 package org.nemesis.forum.proxy; 26 27 import java.util.Iterator ; 28 import java.util.NoSuchElementException ; 29 30 import org.nemesis.forum.Authorization; 31 import org.nemesis.forum.ForumPermissions; 32 33 34 35 38 public abstract class IteratorProxy implements Iterator { 39 40 protected Iterator iterator; 41 protected Authorization authorization; 42 protected ForumPermissions permissions; 43 44 public IteratorProxy( 45 Iterator iterator, 46 Authorization authorization, 47 ForumPermissions permissions) { 48 this.iterator = iterator; 49 this.authorization = authorization; 50 this.permissions = permissions; 51 } 52 53 public boolean hasNext() { 54 return iterator.hasNext(); 55 } 56 57 public abstract Object next() throws NoSuchElementException ; 58 59 public void remove() throws UnsupportedOperationException { 60 iterator.remove(); 61 } 62 } 63 | Popular Tags |