Package tigase.pubsub.utils
Class FragmentedMap<KEY,VALUE>
- java.lang.Object
-
- tigase.pubsub.utils.FragmentedMap<KEY,VALUE>
-
public class FragmentedMap<KEY,VALUE> extends Object
-
-
Constructor Summary
Constructors Constructor Description FragmentedMap(int maxFragmentSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFragment(Map<KEY,VALUE> fragment)voidcleanChangingLog()voidclear()voiddefragment()VALUEget(KEY key)Collection<VALUE>getAllValues()Set<Integer>getChangedFragmentIndexes()Map<KEY,VALUE>getFragment(int index)intgetFragmentsCount()protected Map<KEY,VALUE>getFragmentToNewData()protected Map<KEY,VALUE>getFragmentWithKey(KEY key)Map<KEY,VALUE>getMap()Set<Integer>getRemovedFragmentIndexes()static voidmain(String[] args)VALUEput(KEY key, VALUE value)voidputAll(Map<KEY,VALUE> fragment)VALUEremove(KEY key)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
cleanChangingLog
public void cleanChangingLog()
-
clear
public void clear()
-
defragment
public void defragment()
-
getAllValues
public Collection<VALUE> getAllValues()
-
getFragmentsCount
public int getFragmentsCount()
-
-