Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package org.apache.commons.collections.map;
 /*     */ 
 /*     */ import java.util.Comparator;
 /*     */ import java.util.SortedMap;
 /*     */ 
 /*     */ public class PredicatedSortedMap extends PredicatedMap
 /*     */   implements SortedMap
 /*     */ {
/*     */   private static final long serialVersionUID = 3359846175935304332L;
/*     */ 
/*     */   public static SortedMap decorate(SortedMap mapPredicate keyPredicatePredicate valuePredicate)
/*     */   {
/*  61 */     return new PredicatedSortedMap(map, keyPredicate, valuePredicate);
/*     */   }
/*     */ 
/*     */   protected PredicatedSortedMap(SortedMap mapPredicate keyPredicatePredicate valuePredicate)
/*     */   {
/*  74 */     super(map, keyPredicate, valuePredicate);
/*     */   }
/*     */ 
/*     */   protected SortedMap getSortedMap()
/*     */   {
/*  84 */     return (SortedMap)this.map;
/*     */   }
/*     */ 
/*     */   public Object firstKey()
/*     */   {
/*  89 */     return getSortedMap().firstKey();
/*     */   }
/*     */ 
/*     */   public Object lastKey() {
/*  93 */     return getSortedMap().lastKey();
/*     */   }
/*     */ 
/*     */   public Comparator comparator() {
/*  97 */     return getSortedMap().comparator();
/*     */   }
/*     */ 
/*     */   public SortedMap subMap(Object fromKeyObject toKey) {
/* 101 */     SortedMap map = getSortedMap().subMap(fromKey, toKey);
/* 102 */     return new PredicatedSortedMap(map, this.keyPredicate, this.valuePredicate);
/*     */   }
/*     */ 
/*     */   public SortedMap headMap(Object toKey) {
/* 106 */     SortedMap map = getSortedMap().headMap(toKey);
/* 107 */     return new PredicatedSortedMap(map, this.keyPredicate, this.valuePredicate);
/*     */   }
/*     */ 
/*     */   public SortedMap tailMap(Object fromKey) {
/* 111 */     SortedMap map = getSortedMap().tailMap(fromKey);
/* 112 */     return new PredicatedSortedMap(map, this.keyPredicate, this.valuePredicate);
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.commons.collections.map.PredicatedSortedMap
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X