Type - public class IndexMultiTableInteger<Type>
extends java.lang.Object
implements java.util.Map<java.lang.Integer,Type>, java.lang.Iterable<Type>
| Modifier and Type | Class and Description | 
|---|---|
| private static class  | IndexMultiTableInteger.IteratorHelperThis class contains the data for a  IndexMultiTableInteger.IteratorImplfor one table. | 
| private static class  | IndexMultiTableInteger.IteratorImpl<Type>This class is the Iterator for the outer class. | 
| Modifier and Type | Field and Description | 
|---|---|
| private boolean | isHyperBlockTrue, than  objcontains instances of this class too. | 
| private int[] | keyArray of keys, there are sorted ascending. | 
| private static int | maxBlockThe maximal nr of elements in a block, maximal value of sizeBlock. | 
| private int | modcountmodification access counter for Iterator. | 
| private java.lang.Object[] | objArray of objects appropritate to the keys. | 
| private IndexMultiTableInteger<Type> | parentThe parent if it is a child table. | 
| private int | sizeBlockactual number of objects stored in this table. | 
| Constructor and Description | 
|---|
| IndexMultiTableInteger()constructs an empty instance without data. | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) void | assert1(boolean cond) | 
| private static int | binarySearchFirstKey(int[] a,
                    int fromIndex,
                    int toIndex,
                    int key)Binary search of the element, which is the first with the given key. | 
| (package private) void | check() | 
| void | clear()Delete all content. | 
| boolean | containsKey(java.lang.Object arg0) | 
| boolean | containsValue(java.lang.Object arg0) | 
| java.util.Set<java.util.Map.Entry<java.lang.Integer,Type>> | entrySet() | 
| Type | get(java.lang.Object key2) | 
| boolean | isEmpty() | 
| java.util.Iterator<Type> | iterator() | 
| java.util.Iterator<Type> | iterator(int fromKey) | 
| java.util.Set<java.lang.Integer> | keySet() | 
| Type | put(java.lang.Integer arg0,
   Type obj1)Put a object in the table. | 
| void | putAll(java.util.Map<? extends java.lang.Integer,? extends Type> arg0) | 
| Type | remove(java.lang.Object arg0) | 
| private static int | separateIn2arrays(IndexMultiTableInteger<?> src,
                 IndexMultiTableInteger<?> left,
                 IndexMultiTableInteger<?> right)separates the src into two arrays with the half size . | 
| int | size() | 
| private void | sortin(int idx,
      int key1,
      java.lang.Object obj1) | 
| private static void | sortInSeparated2arrays(int idx,
                      int key1,
                      java.lang.Object obj1,
                      IndexMultiTableInteger<?> src,
                      IndexMultiTableInteger<?> left,
                      IndexMultiTableInteger<?> right)separates the src into two arrays with the half size and sort in the object. | 
| (package private) void | stop() | 
| java.util.Collection<Type> | values() | 
| void | xxxadd(int arg0,
      Type arg1) | 
| boolean | xxxadd(Type arg0) | 
| boolean | xxxaddAll(java.util.Collection<? extends Type> arg0) | 
| boolean | xxxaddAll(int arg0,
         java.util.Collection<? extends Type> arg1) | 
| boolean | xxxcontains(java.lang.Object arg0) | 
| boolean | xxxcontainsAll(java.util.Collection<?> arg0) | 
| Type | xxxget(int arg0) | 
| int | xxxindexOf(java.lang.Object arg0) | 
| int | xxxlastIndexOf(java.lang.Object arg0) | 
| java.util.ListIterator<Type> | xxxlistIterator() | 
| java.util.ListIterator<Type> | xxxlistIterator(int arg0) | 
| Type | xxxremove(int arg0) | 
| boolean | xxxremoveAll(java.util.Collection<?> arg0) | 
| boolean | xxxretainAll(java.util.Collection<?> arg0) | 
| Type | xxxset(int arg0,
      Type arg1) | 
| java.util.List<Type> | xxxsubList(int arg0,
          int arg1) | 
| java.lang.Object[] | xxxtoArray() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate static final int maxBlock
private int sizeBlock
private boolean isHyperBlock
obj contains instances of this class too.private int modcount
private final java.lang.Object[] obj
private final int[] key
private IndexMultiTableInteger<Type> parent
public IndexMultiTableInteger()
public Type put(java.lang.Integer arg0, Type obj1)
put in interface java.util.Map<java.lang.Integer,Type>private void sortin(int idx,
                    int key1,
                    java.lang.Object obj1)
private static void sortInSeparated2arrays(int idx,
                                           int key1,
                                           java.lang.Object obj1,
                                           IndexMultiTableInteger<?> src,
                                           IndexMultiTableInteger<?> left,
                                           IndexMultiTableInteger<?> right)
idx - Primordially index of the obj in the src array.key1 - The key valueobj1 - The objectsrc - The src tableleft - The left table. It may be the same as src.right - The right table.private static int separateIn2arrays(IndexMultiTableInteger<?> src, IndexMultiTableInteger<?> left, IndexMultiTableInteger<?> right)
src - The src tableleft - The left table. It may be the same as src.right - The right table.public void clear()
clear in interface java.util.Map<java.lang.Integer,Type>Map.clear()public boolean containsKey(java.lang.Object arg0)
containsKey in interface java.util.Map<java.lang.Integer,Type>public boolean containsValue(java.lang.Object arg0)
containsValue in interface java.util.Map<java.lang.Integer,Type>public java.util.Set<java.util.Map.Entry<java.lang.Integer,Type>> entrySet()
entrySet in interface java.util.Map<java.lang.Integer,Type>public Type get(java.lang.Object key2)
get in interface java.util.Map<java.lang.Integer,Type>public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Integer,Type>public java.util.Set<java.lang.Integer> keySet()
keySet in interface java.util.Map<java.lang.Integer,Type>public void putAll(java.util.Map<? extends java.lang.Integer,? extends Type> arg0)
putAll in interface java.util.Map<java.lang.Integer,Type>public int size()
size in interface java.util.Map<java.lang.Integer,Type>public java.util.Collection<Type> values()
values in interface java.util.Map<java.lang.Integer,Type>public boolean xxxadd(Type arg0)
public void xxxadd(int arg0,
                   Type arg1)
public boolean xxxaddAll(java.util.Collection<? extends Type> arg0)
public boolean xxxaddAll(int arg0,
                         java.util.Collection<? extends Type> arg1)
public boolean xxxcontains(java.lang.Object arg0)
public boolean xxxcontainsAll(java.util.Collection<?> arg0)
public Type xxxget(int arg0)
public int xxxindexOf(java.lang.Object arg0)
public java.util.Iterator<Type> iterator()
iterator in interface java.lang.Iterable<Type>public java.util.Iterator<Type> iterator(int fromKey)
public int xxxlastIndexOf(java.lang.Object arg0)
public java.util.ListIterator<Type> xxxlistIterator()
public java.util.ListIterator<Type> xxxlistIterator(int arg0)
public Type xxxremove(int arg0)
public boolean xxxremoveAll(java.util.Collection<?> arg0)
public boolean xxxretainAll(java.util.Collection<?> arg0)
public java.util.List<Type> xxxsubList(int arg0, int arg1)
public java.lang.Object[] xxxtoArray()
public Type remove(java.lang.Object arg0)
remove in interface java.util.Map<java.lang.Integer,Type>void stop()
void check()
void assert1(boolean cond)
private static int binarySearchFirstKey(int[] a,
                                        int fromIndex,
                                        int toIndex,
                                        int key)
a - The arrayfromIndex - start index, first positiontoIndex - end index. exclusive last position in akey - search key