uka.util
Class IntWeakHashBijection

java.lang.Object
  extended byuka.util.IDConstants
      extended byuka.util.IntObjectHashBijection
          extended byuka.util.IntWeakHashBijection
All Implemented Interfaces:
Printable, java.io.Serializable

public class IntWeakHashBijection
extends IntObjectHashBijection

Author:
Bernhard Haumacher
See Also:
Serialized Form

Nested Class Summary
static class IntWeakHashBijection.Entry
           
(package private) static class IntWeakHashBijection.Ref
          Weakly refer to an object, and remember its entry beyond its death.
 
Nested classes inherited from class uka.util.IntObjectHashBijection
IntObjectHashBijection.Iterator
 
Field Summary
private  java.lang.ref.ReferenceQueue queue
           
 
Fields inherited from class uka.util.IntObjectHashBijection
 
Fields inherited from class uka.util.IDConstants
FIRST_NEW_ID, FIRST_VALID_ID, INVALID_ID, UNUSED_ID
 
Constructor Summary
IntWeakHashBijection()
           
IntWeakHashBijection(int INVALID_VALUE1)
           
 
Method Summary
protected  IntObjectHashBijection.Entry createEntry(int value1, java.lang.Object value2)
          Factory method for creating new entries.
 IntIterator deadValues1()
           
private  void readObject(java.io.ObjectInputStream in)
           
private  void restoreAfterUnmarshal()
           
 
Methods inherited from class uka.util.IntObjectHashBijection
appendTo, clear, dump, getHash1, getHash2, getSize, getValue1, getValue2, iterator, put, remove, remove1, remove2, toString
 
Methods inherited from class uka.util.IDConstants
isNew, isValid, normalizeID, toggleNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queue

private transient java.lang.ref.ReferenceQueue queue
Constructor Detail

IntWeakHashBijection

public IntWeakHashBijection()

IntWeakHashBijection

public IntWeakHashBijection(int INVALID_VALUE1)
Method Detail

createEntry

protected IntObjectHashBijection.Entry createEntry(int value1,
                                                   java.lang.Object value2)
Factory method for creating new entries. May be overridden in subclasses.

Overrides:
createEntry in class IntObjectHashBijection

deadValues1

public IntIterator deadValues1()

restoreAfterUnmarshal

private void restoreAfterUnmarshal()
                            throws java.lang.ClassNotFoundException,
                                   java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException