Package eu.simuline.util
Utility classes: very inhomogeneous.
-
Framework providing the
MultiSets, plain and sortedSortedMultiSet, both interfaces and implementing classes:AbstractMultiSetwhich is the base class of all concrete classes. There are two,HashMultiSetwhich is just aMultiSetandTreeMultiSetwhich is even aSortedMultiSet. **** bad design: immutable. of TreeMultiSet set and of HashMultiSet
x ***** NOT YET COMPLETE.-
Interface Summary Interface Description CyclicIterator<E> An iterator over aCyclicList.CyclicList<E> An ordered cyclic list.Finder.Callable To be implemented by java classes to apply a filter to a file and give feedback whether this filter succeeded.JavaPath.FileWrapper Wrapps a file directly found within a directory or within a zip-archive which also includes jar-archives.MultiSet<T> Represents a set with multiplicities.MultiSet.Multiplicity Represents the multiplicity of an entry of the enclosing multi-set.MultiSetIterator<E> Generalization of iterator suitable e.g. for sets toMultiSets.RealRepresentation.Cutter ACutteris used to shorten numbers.SortedMultiSet<T> Represents a sorted set with multiplicities. -
Class Summary Class Description AbstractMultiSet<MAP extends Map<T,MultiSet.Multiplicity>,T> Represents an abstract MultiSet based on aMap.AbstractMultiSet.MultiplicityImpl Serves as a wrapper object for a multiplicityAbstractMultiSet.MultiplicityImpl.mult.AbstractMultiSet.MultiSetIteratorImpl<T> A canonical implementation ofMultiSetIteratordefining also the methods modifying the underlyingMultiSet, namelyAbstractMultiSet.MultiSetIteratorImpl.remove(),AbstractMultiSet.MultiSetIteratorImpl.setMult(int)andAbstractMultiSet.MultiSetIteratorImpl.removeMult(int).ArraysExt<E> An add on to the classArrays.ArraysExt.ArrayComparator<O> Comparator class which implements a kind of lexical ordering on arrays based on the ordering of the components defined byatomic.BasicTypesCompatibilityChecker Provides methods to map basic types to their wrappers, to map wrapper types to the corresponding basic types and for compatibility checks.BitSetList Caster Provides ways to transform instances of various classes into one another.Caster.Trivial This is a trivial caster.CollectionsExt<E> An add on of the core classCollections.CollectionsExt.AbstractImmutableCollection<C extends Collection<E>,E> A class ofCollections of elements of classEextendingCinitially throwing anUnsupportedOperationExceptionwhen trying to modify the collection either directly or via its iterator(s) or via a transparent view likeList.subList(int, int).CollectionsExt.AbstractImmutableMultiSet<C extends MultiSet<E>,E> A MultiSet which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.ImmutableCollection<E> A collection which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.ImmutableCyclicList<E> Represents an immutable cyclic list by throwing an exception when invoking a method which modifies this list.CollectionsExt.ImmutableList<E> A list which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.ImmutableMultiplicity An immutable implementation of the multiplicity interface.CollectionsExt.ImmutableMultiSet<E> A multi-set which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.ImmutableSet<E> A set which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.ImmutableSortedMultiSet<E> A sorted multi-set which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.ImmutableSortedSet<E> A sorted set which prevents being modified by throwing an exception for the modifying methods.CollectionsExt.NonModifyingCyclicIterator<E> An interator which prevents modification on the underlying list, by throwing an exception for the modifying methods.Comparators<E> Collection of static methods related withComparators.Comparators.AsListed<E> Implements an ordering given by the listComparators.AsListed.seq.Comparators.Cascade<E> Represents a comparator which is a cascade of comparators: Starting with the first comparator inComparators.Cascade.seqasks the next comparator if the current one detects equality.CyclicArrayList<E> Resizable-array implementation of theCyclicListinterface.CyclicArrayList.CyclicArrayIterator<E> An iterator over aCyclicList.FIFOList<E> The FIFOList class represents a first-in-first-out (FIFO) stack of objects.Finder Emulates the unix shell commandfindwhich is invoked asfind [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...]Finder.AndFilter One of the logical operations of filters: Returns a filter which passes a file iff all original filters inFinder.AndFilter.filtersdo so.Finder.ExecFilter Filter executing a shell command and passes the file received if the shell command succeeds according to its return code.Finder.ExecJavaFilter Filter executing a java class implementingFinder.Callablewhich passes the file received if the methodFinder.Callable.call(File)succeeds according to its return code.Finder.Filter Represents a file filter.Finder.NameFilter Filters files by name.Finder.NegFilter One of the logical operations of filters: Returns a filter which passes a file iff the original filterFinder.NegFilter.negFilterdoes not.Finder.OrFilter One of the logical operations of filters: Returns a filter which passes a file iff at least one of the original filters inFinder.OrFilter.filtersdo so.Finder.Primary The most basic kind of finder: MethodFinder.path(File)returns an instance of this.Finder.Secondary A finder wrapping aFinder.Filter.GifResource Provides a single method only,GifResource.getIcon(Class), which returns the icon associated with the given class.HashMultiSet<T> Represents a set with multiplicities based on aHashMap.JavaPath Represents a path to find class and source files on.JavaPath.OrdFileWrapper Represents an ordinary fileJavaPath.OrdFileWrapper.fileon a file system.JavaPath.ZipEntryWrapper Represents a fileJavaPath.ZipEntryWrapper.entrywhich is an entry in a zip-fileJavaPath.ZipEntryWrapper.zipFile.ListMap<K,V> ASortedMapwith ordering given by the ordering by which the keys are added.ListSet<E> This class implements the Set interface, backed by ajava.util.ArrayList.RealRepresentation Describes the representation of a real value, which may be either a double, resp. a Double-value or aBigDecimalfor use in tables.RealRepresentation.BigDecimalRep Describes the representation of aBigDecimal-value.RealRepresentation.Desc Describes the way the real number represented byRealRepresentationis displayed as a string.RealRepresentation.DoubleRep Describes the representation of a double, resp. a Double-value.RealRepresentation.Number2SignUnsigned Container for number splitted into sign and unsigned.SoftEnum<E extends SoftEnum<E>> This class is inspired byEnumand is intended as common base class of classes we shall call 'soft enums'.StringPool Provides various strings used in various classes, e.g. in messages.Strings Collection of static methods related to strings.SwingWorker This is the 3rd version of SwingWorker (also known as SwingWorker 3), an abstract class that you subclass to perform GUI-related work in a dedicated thread.SwingWorker.ThreadVar Class to maintain reference to current worker thread under separate synchronization control.TreeMultiSet<T> Represents a sorted set with multiplicities based on aTreeMap.TwoSidedList<E> Compared to a classical list, the first index of this list may well be positive and negative indices are allowed as well.VMArgs -
Enum Summary Enum Description CollectionsExt.Modification Enumerates the kinds of modifications on aCollection.CyclicArrayList.StateIter Enumeration of the state of an iterator.DataModel Enumerates categories of data models and determines the current data model.DetOs Enumerates the most important operating system and determines the current operating system.JavaPath.ClsSrc Determines whether a class file or a source file is meant.TwoSidedList.Direction Used as an argument for methods adding or removing elements from this list to determine in which direction this list has to shrink or grow. -
Exception Summary Exception Description EmptyCyclicListException Thrown by various methods inCyclicList.NotYetImplementedException Thrown if a place in the code is reached, where implementation is not finished.