Package com.aliasi.util

Classes for general Java utilities.

See:
          Description

Interface Summary
Compilable The Compilable interface specifies a general way in which an object may be compiled to an object output.
Distance<E> The Distance interface provides a general method for defining distances between two objects.
Factory<E> A Factory provides a generic interface for object creation of a specified type.
FeatureExtractor<E> A FeatureExtractor provides a method of converting generic input objects into feature vectors.
PriorityQueue<E> Deprecated. Use one of the implementations in applications, or Queue for the interface.
Proximity<E> The Proximity interface provides a general method for defining closeness between two objects.
Scored The Scored interface should be implemented by objects that return a double-valued score.
 

Class Summary
AbstractCommand A CommandLineArguments object represents a the command-line arguments.
AbstractExternalizable The AbstractExternalizer is an adapter for read resolved externalizables.
Arrays Static utility methods for processing arrays.
BinaryMap<E> The BinaryMap class implements a map from objects to integer objects where the only value is the integer with value 1.
BoundedPriorityQueue<E> A BoundedPriorityQueue implements a priority queue with an upper bound on the number of elements.
Collections Deprecated. Use methods as indicated on a per-method basis.
CommaSeparatedValues A CommaSeparatedValues object represents a two-dimensional array of strings which may be read and written in comma-separated-value string representation.
CompactHashSet<E> A CompactHashSet implements the set interface more tightly in memory and more efficiently than Java's HashSet.
Counter A reassignable integer usable for counting.
Exceptions Static utility methods for handling exceptions.
FastCache<K,V> A FastCache is a map implemented with soft references, optimistic copy-on-write updates, and approximate count-based pruning.
Files Static utility methods for processing files.
FilterComparator<E> Deprecated. Build your own from scratch, this is a very simple filter.
HardFastCache<K,V> A HardFastCache is a map implemented with hard references, optimistic copy-on-write updates, and approximate count-based pruning.
Iterators Static utility methods, classes, and abstract classes for iteration.
Iterators.Array<E> Deprecated. Construct with the static factory method Iterators.array(Object[]) instead.
Iterators.ArraySlice<E> Deprecated. Use the static factory method Iterators.arraySlice(Object[],int,int) instead.
Iterators.Buffered<E> An Iterators.Buffered uses a single method to return objects, buffering the result and returning it as the next element if it is non-null.
Iterators.Empty<E> Deprecated. Use the static factory method Iterators.empty() instead.
Iterators.Filter<E> An Iterators.Filter filters the stream of objects returned by another iterator by subjecting them to an acceptance test.
Iterators.Modifier<E> An Iterator.Modifier uses a single abstract method to operate on the elements returned by an underlying iterator to return modified objects.
Iterators.Pair<E> Deprecated. Use the static factory method Iterators.pair(Object,Object) instead.
Iterators.PrimitiveInt A Iterators.PrimitiveInt is an integer iterator that also allows objects to be accessed as primitive int values.
Iterators.Sequence<E> Deprecated. Use the static factory method Iterators.sequence(Iterator,Iterator), Iterators.sequence(Iterator), or Iterators.sequence(List) instead.
Iterators.Singleton<E> Deprecated. Use the static factory method Iterators.singleton(Object) instead.
Math A math utility class with static methods.
MinMaxHeap<E extends Scored> A MinMaxHeap provides a heap-like data structure that provides fast access to both the minimum and maximum elements of the heap.
NBestSet<E> Deprecated. Use BoundedPriorityQueue or ShortPriorityQueue instead.
ObjectToCounterMap<E> An ObjectToCounterMap maintains a mapping from objects to integer counters, which may be incremented or set.
ObjectToDoubleMap<E> An ObjectToDoubleMap maintains a mapping from objects to double-valued counters, which may be incremented or set.
ObjectToSet<K,M> An ObjectToSet provides a Map from arbitrary objects to objects of class Set.
Pair<A,B> The Pair class represents an immutable pair of objects of heterogeneous type.
Reflection Deprecated. Use java.lang.reflect directly instead, as described on the individual methods.
ReversibleComparator<E> Deprecated. Use Collections.reverseOrder(Comparator).
ReversibleMTFListComparator<E> Deprecated. We'll put this in a demo if we ever need to build complex GUI table controls again.
ScoredObject<E> A ScoredObject provides an implementation of the Scored interface with an attached object.
Sgml The Sgml class contains static methods for processing SGML into unicode characters.
ShortPriorityQueue<E> A ShortPriorityQueue<E> is a length-bounded priority queue optimized for short lengths.
SmallObjectToDoubleMap<E extends Comparable<E>> Deprecated. Use plain ObjectToDoubleMap.
SmallSet<E> The SmallSet class implements immutable instances the Set interface tailored for sets with a small number of members.
Streams Static utility methods for processing input and output streams, readers and writers.
Strings Static utility methods for processing strings, characters and string buffers.
Tuple<E> A tuple is an immutable ordered list of objects or null values with equality conditions determined pointwise.
XML Deprecated. Implement functionality directly.
 

Package com.aliasi.util Description

Classes for general Java utilities.