Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package org.apache.commons.collections.list;
 /*     */ 
 /*     */ import java.util.Collection;
 /*     */ import java.util.List;
 /*     */ import java.util.ListIterator;
 /*     */ 
/*     */ public class TransformedList extends TransformedCollection
/*     */   implements List
/*     */ {
/*     */   private static final long serialVersionUID = 1077193035000013141L;
/*     */ 
/*     */   public static List decorate(List listTransformer transformer)
/*     */   {
/*  57 */     return new TransformedList(listtransformer);
/*     */   }
/*     */ 
/*     */   protected TransformedList(List listTransformer transformer)
/*     */   {
/*  72 */     super(listtransformer);
/*     */   }
/*     */ 
/*     */   protected List getList()
/*     */   {
/*  81 */     return (List)this.;
/*     */   }
/*     */ 
/*     */   public Object get(int index)
/*     */   {
/*  86 */     return getList().get(index);
/*     */   }
/*     */ 
/*     */   public int indexOf(Object object) {
/*  90 */     return getList().indexOf(object);
/*     */   }
/*     */ 
/*     */   public int lastIndexOf(Object object) {
/*  94 */     return getList().lastIndexOf(object);
/*     */   }
/*     */ 
/*     */   public Object remove(int index) {
/*  98 */     return getList().remove(index);
/*     */   }
/*     */ 
/*     */   public void add(int indexObject object)
/*     */   {
/* 103 */     object = transform(object);
/* 104 */     getList().add(indexobject);
/*     */   }
/*     */ 
/*     */   public boolean addAll(int indexCollection coll) {
/* 108 */     coll = transform(coll);
/* 109 */     return getList().addAll(indexcoll);
/*     */   }
/*     */ 
/*     */   public ListIterator listIterator() {
/* 113 */     return listIterator(0);
/*     */   }
/*     */ 
/*     */   public ListIterator listIterator(int i) {
/* 117 */     return new TransformedListIterator(getList().listIterator(i));
/*     */   }
/*     */ 
/*     */   public Object set(int indexObject object) {
/* 121 */     object = transform(object);
/* 122 */     return getList().set(indexobject);
/*     */   }
/*     */ 
/*     */   public List subList(int fromIndexint toIndex) {
/* 126 */     List sub = getList().subList(fromIndextoIndex);
/* 127 */     return new TransformedList(subthis.);
/*     */   }
/*     */ 
/*     */   protected class TransformedListIterator extends AbstractListIteratorDecorator
/*     */   {
/*     */     protected TransformedListIterator(ListIterator iterator)
/*     */     {
/* 136 */       super();
/*     */     }
/*     */ 
/*     */     public void add(Object object) {
/* 140 */       object = TransformedList.this.transform(object);
/* 141 */       this..add(object);
/*     */     }
/*     */ 
/*     */     public void set(Object object) {
/* 145 */       object = TransformedList.this.transform(object);
/* 146 */       this..set(object);
/*     */     }
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.commons.collections.list.TransformedList
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X