org.eclipse.osgi.internal.module
Class VersionHashMap<V extends VersionSupplier>

java.lang.Object
  extended by org.eclipse.osgi.internal.module.MappedList<String,V>
      extended by org.eclipse.osgi.internal.module.VersionHashMap<V>
All Implemented Interfaces:
Comparator<V>

public class VersionHashMap<V extends VersionSupplier>
extends MappedList<String,V>
implements Comparator<V>


Field Summary
 
Fields inherited from class org.eclipse.osgi.internal.module.MappedList
empty, internal
 
Constructor Summary
VersionHashMap(ResolverImpl resolver)
           
 
Method Summary
 int compare(V vs1, V vs2)
           
 boolean contains(V vs)
           
protected  int insertionIndex(List<V> existing, V value)
           
 void put(V[] versionSuppliers)
           
 V remove(V toBeRemoved)
           
 void remove(V[] versionSuppliers)
           
 
Methods inherited from class org.eclipse.osgi.internal.module.MappedList
clear, get, getAllValues, getSize, put, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

VersionHashMap

public VersionHashMap(ResolverImpl resolver)
Method Detail

insertionIndex

protected int insertionIndex(List<V> existing,
                             V value)
Overrides:
insertionIndex in class MappedList<String,V extends VersionSupplier>

put

public void put(V[] versionSuppliers)

contains

public boolean contains(V vs)

remove

public V remove(V toBeRemoved)

remove

public void remove(V[] versionSuppliers)

compare

public int compare(V vs1,
                   V vs2)
Specified by:
compare in interface Comparator<V extends VersionSupplier>


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.