Package edu.mit.ai.psg.utilities

Utilities: various utilities that extend java.util classes in useful ways, such as: HashMapCache: extends WeakHashMap to implement a true cache that doesn't prevent its keys nor values from being garbage collected.

See:
          Description

Interface Summary
ICollection A Collection interface with functional methods that return collections.
ISet A set interface with functional methods that return collections.
IUnaryFunction a function that may apply to any object
IUnaryPredicate a predicate that may apply to any object
ReferenceCleaner.Cleanable  
 

Class Summary
ArrayMap ArrayMap is a implementation of Map which uses a simple trimmed array of alternating keys and values.
Collecting Methods on collections
HashedSet HashedSet extends java.util.HashSet with ISet methods
HashMapCache HashMapCache is a Map which keeps references to values as java.lang.ref.SoftReferences, and removes entries after values are garbage collected.
HashMapCache.Entry  
InitializableThreadLocal Thread local which can be initialized, e.g., by creating thread; useful when thread local value needs to inherit value from creating thread.
ReferenceCleaner ReferenceCleaner is used to remove entries from collections which use soft or weak references.
UnaryTrue Predicate that always returns true
VectorMap VectorMap is a debugging implementation of Map using a java.util.Vector of alternating keys and values, which is easier to browse in a debugger than a hash table.
VectorSet A "ISet" implemented as a Vector; It may be smaller than HashSet for small sets.
WeakVectorSet A set with weak references, so it doesn't prevent its contents from being garbage collected.
 

Package edu.mit.ai.psg.utilities Description

Utilities: various utilities that extend java.util classes in useful ways, such as:

See Utilities.copyright.


Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu