Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.apache.commons.collections.iterators;
 /*    */ 
 /*    */ import java.util.ListIterator;
 /*    */ 
 /*    */ public final class UnmodifiableListIterator
 /*    */   implements ListIteratorUnmodifiable
 /*    */ {
 /*    */   private ListIterator iterator;
/*    */ 
/*    */   public static ListIterator decorate(ListIterator iterator)
/*    */   {
/* 43 */     if (iterator == null) {
/* 44 */       throw new IllegalArgumentException("ListIterator must not be null");
/*    */     }
/* 46 */     if ((iterator instanceof Unmodifiable)) {
/* 47 */       return iterator;
/*    */     }
/* 49 */     return new UnmodifiableListIterator(iterator);
/*    */   }
/*    */ 
/*    */   private UnmodifiableListIterator(ListIterator iterator)
/*    */   {
/* 60 */     this. = iterator;
/*    */   }
/*    */ 
/*    */   public boolean hasNext()
/*    */   {
/* 65 */     return this..hasNext();
/*    */   }
/*    */ 
/*    */   public Object next() {
/* 69 */     return this..next();
/*    */   }
/*    */ 
/*    */   public int nextIndex() {
/* 73 */     return this..nextIndex();
/*    */   }
/*    */ 
/*    */   public boolean hasPrevious() {
/* 77 */     return this..hasPrevious();
/*    */   }
/*    */ 
/*    */   public Object previous() {
/* 81 */     return this..previous();
/*    */   }
/*    */ 
/*    */   public int previousIndex() {
/* 85 */     return this..previousIndex();
/*    */   }
/*    */ 
/*    */   public void remove() {
/* 89 */     throw new UnsupportedOperationException("remove() is not supported");
/*    */   }
/*    */ 
/*    */   public void set(Object obj) {
/* 93 */     throw new UnsupportedOperationException("set() is not supported");
/*    */   }
/*    */ 
/*    */   public void add(Object obj) {
/* 97 */     throw new UnsupportedOperationException("add() is not supported");
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.commons.collections.iterators.UnmodifiableListIterator
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X