1 53 54 package com.Yasna.forum; 55 56 import java.util.*; 57 58 61 public abstract class IteratorProxy implements Iterator { 62 63 protected Iterator iterator; 64 protected Authorization authorization; 65 protected ForumPermissions permissions; 66 67 public IteratorProxy(Iterator iterator, Authorization authorization, 68 ForumPermissions permissions) 69 { 70 this.iterator = iterator; 71 this.authorization = authorization; 72 this.permissions = permissions; 73 } 74 75 public boolean hasNext() { 76 return iterator.hasNext(); 77 } 78 79 public abstract Object next() throws java.util.NoSuchElementException ; 80 81 public void remove() throws UnsupportedOperationException { 82 iterator.remove(); 83 } 84 } 85 86 | Popular Tags |