Package org.apache.commons.collections.keyvalue

Examples of org.apache.commons.collections.keyvalue.MultiKey


/* 230 */     return h;
/*     */   }
/*     */
/*     */   protected boolean isEqualKey(AbstractHashedMap.HashEntry entry, Object key1, Object key2)
/*     */   {
/* 242 */     MultiKey multi = (MultiKey)entry.getKey();
/* 243 */     return (multi.size() == 2) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) && (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1)));
/*     */   }
View Full Code Here


/* 307 */         return oldValue;
/*     */       }
/* 309 */       entry = entry.next;
/*     */     }
/*     */
/* 312 */     this.map.addMapping(index, hashCode, new MultiKey(key1, key2, key3), value);
/* 313 */     return null;
/*     */   }
View Full Code Here

/* 364 */     return h;
/*     */   }
/*     */
/*     */   protected boolean isEqualKey(AbstractHashedMap.HashEntry entry, Object key1, Object key2, Object key3)
/*     */   {
/* 377 */     MultiKey multi = (MultiKey)entry.getKey();
/* 378 */     return (multi.size() == 3) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) && (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))) && (key3 == null ? multi.getKey(2) == null : key3.equals(multi.getKey(2)));
/*     */   }
View Full Code Here

/* 446 */         return oldValue;
/*     */       }
/* 448 */       entry = entry.next;
/*     */     }
/*     */
/* 451 */     this.map.addMapping(index, hashCode, new MultiKey(key1, key2, key3, key4), value);
/* 452 */     return null;
/*     */   }
View Full Code Here

/* 508 */     return h;
/*     */   }
/*     */
/*     */   protected boolean isEqualKey(AbstractHashedMap.HashEntry entry, Object key1, Object key2, Object key3, Object key4)
/*     */   {
/* 522 */     MultiKey multi = (MultiKey)entry.getKey();
/* 523 */     return (multi.size() == 4) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) && (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))) && (key3 == null ? multi.getKey(2) == null : key3.equals(multi.getKey(2))) && (key4 == null ? multi.getKey(3) == null : key4.equals(multi.getKey(3)));
/*     */   }
View Full Code Here

/* 595 */         return oldValue;
/*     */       }
/* 597 */       entry = entry.next;
/*     */     }
/*     */
/* 600 */     this.map.addMapping(index, hashCode, new MultiKey(key1, key2, key3, key4, key5), value);
/* 601 */     return null;
/*     */   }
View Full Code Here

/* 662 */     return h;
/*     */   }
/*     */
/*     */   protected boolean isEqualKey(AbstractHashedMap.HashEntry entry, Object key1, Object key2, Object key3, Object key4, Object key5)
/*     */   {
/* 677 */     MultiKey multi = (MultiKey)entry.getKey();
/* 678 */     return (multi.size() == 5) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) && (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))) && (key3 == null ? multi.getKey(2) == null : key3.equals(multi.getKey(2))) && (key4 == null ? multi.getKey(3) == null : key4.equals(multi.getKey(3))) && (key5 == null ? multi.getKey(4) == null : key5.equals(multi.getKey(4)));
/*     */   }
View Full Code Here

/*     */   public boolean removeAll(Object key1)
/*     */   {
/* 698 */     boolean modified = false;
/* 699 */     MapIterator it = mapIterator();
/* 700 */     while (it.hasNext()) {
/* 701 */       MultiKey multi = (MultiKey)it.next();
/* 702 */       if ((multi.size() >= 1) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))))
/*     */       {
/* 704 */         it.remove();
/* 705 */         modified = true;
/*     */       }
/*     */     }
View Full Code Here

/*     */   public boolean removeAll(Object key1, Object key2)
/*     */   {
/* 722 */     boolean modified = false;
/* 723 */     MapIterator it = mapIterator();
/* 724 */     while (it.hasNext()) {
/* 725 */       MultiKey multi = (MultiKey)it.next();
/* 726 */       if ((multi.size() >= 2) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) && (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))))
/*     */       {
/* 729 */         it.remove();
/* 730 */         modified = true;
/*     */       }
/*     */     }
View Full Code Here

/*     */   public boolean removeAll(Object key1, Object key2, Object key3)
/*     */   {
/* 748 */     boolean modified = false;
/* 749 */     MapIterator it = mapIterator();
/* 750 */     while (it.hasNext()) {
/* 751 */       MultiKey multi = (MultiKey)it.next();
/* 752 */       if ((multi.size() >= 3) && (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) && (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))) && (key3 == null ? multi.getKey(2) == null : key3.equals(multi.getKey(2))))
/*     */       {
/* 756 */         it.remove();
/* 757 */         modified = true;
/*     */       }
/*     */     }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.keyvalue.MultiKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.