Uses of Interface
net.cscott.jutil.MapFactory
-
Uses of MapFactory in net.cscott.jutil
Subinterfaces of MapFactory in net.cscott.jutilModifier and TypeInterfaceDescriptioninterfaceMultiMapFactory<K,V> MultiMapFactoryis aMultiMapgenerator.Classes in net.cscott.jutil that implement MapFactoryModifier and TypeClassDescriptionclassAggregateMapFactory<K,V> AggregateMapFactoryuses a singleHashMapas backing store for the many smallerMaps created by thisMapFactory.classclassPersistentMapFactory<K,V> APersistentMapFactoryuses hash-consing to ensure that theMaps created by it maximally reuse space.classAPersistentMultiMapFactoryuses hash-consing to ensure that theMultiMaps created by it maximally reuse space.Fields in net.cscott.jutil declared as MapFactoryModifier and TypeFieldDescriptionstatic final MapFactoryFactories.hashMapFactoryDeprecated.static final MapFactoryFactories.linkedHashMapFactoryDeprecated.UseFactories.linkedHashMapFactory(), which is parameterized.static final MapFactoryFactories.treeMapFactoryDeprecated.UseFactories.treeMapFactory(), which is parameterized.Methods in net.cscott.jutil that return MapFactoryModifier and TypeMethodDescriptionstatic final <K extends Enum<K>,V>
MapFactory<K, V> Factories.enumMapFactory(Class<K> enumClass) AMapFactorythat generatesEnumMaps.static final <K,V> MapFactory <K, V> Factories.hashMapFactory()static final <K,V> MapFactory <K, V> Factories.linkedHashMapFactory()Returns aMapFactorythat generatesLinkedHashMaps.static <K,V> MapFactory <K, V> Factories.synchronizedMapFactory(MapFactory<K, V> mf) Returns aMapFactorythat generates synchronized (thread-safe)Maps.static final <K extends Comparable<K>,V>
MapFactory<K, V> Factories.treeMapFactory()Returns aMapFactorythat generatesTreeMaps, in the keys' natural order.static final <K,V> MapFactory <K, V> Factories.treeMapFactory(Comparator<? super K> comp) Methods in net.cscott.jutil with parameters of type MapFactoryModifier and TypeMethodDescriptionstatic <K,V> SetFactory <Map.Entry<K, V>> Factories.mapSetFactory(MapFactory<K, V> mf) static <K,V> MapFactory <K, V> Factories.synchronizedMapFactory(MapFactory<K, V> mf) Returns aMapFactorythat generates synchronized (thread-safe)Maps.Constructors in net.cscott.jutil with parameters of type MapFactoryModifierConstructorDescriptionGenericInvertibleMap(MapFactory<K, V> mf, MultiMapFactory<V, K> mmf) Constructs an invertible map backed by a map constructed bymfand an inverted map constructed bymmf.GenericInvertibleMultiMap(MapFactory<?, ?> mf, CollectionFactory<?> cf) GenericMultiMap(MapFactory<K, Collection<V>> mf, CollectionFactory<V> cf) Creates aMultiMapusing the specifiedMapFactoryto create the map and the specifiedCollectionFactoryto create the value collections.GenericMultiMapFactory(MapFactory<K, Collection<V>> mf, CollectionFactory<V> cf) Create a newGenericMultiMapFactory, specifying theMapFactoryandCollectionFactoryto be used by the underlyingGenericMultiMap.
Factories.hashMapFactory(), which is parameterized.