Uses of Interface
org.omnaest.utils.structure.element.factory.Factory

Packages that use Factory
org.omnaest.utils.assertion   
org.omnaest.utils.cache   
org.omnaest.utils.structure.collection.list   
org.omnaest.utils.structure.collection.list.sorted   
org.omnaest.utils.structure.element   
org.omnaest.utils.structure.element.factory   
org.omnaest.utils.structure.element.factory.adapter   
org.omnaest.utils.structure.element.factory.concrete   
org.omnaest.utils.structure.iterator   
org.omnaest.utils.structure.map   
 

Uses of Factory in org.omnaest.utils.assertion
 

Methods in org.omnaest.utils.assertion with parameters of type Factory
 AssertLogger.DirectAssertHandler AssertLogger.DirectAssertHandlerMessageChoice.logWithMessage(AssertLogger.DirectAssertHandlerMessageChoice.LogLevel logLevel, Factory<String> messageFactory)
           
 

Uses of Factory in org.omnaest.utils.cache
 

Methods in org.omnaest.utils.cache with parameters of type Factory
 V Cache.getOrCreate(K key, Factory<V> factory)
          Gets a cached value or creates a new one using the given Factory and puts the new value into the cache.
 

Uses of Factory in org.omnaest.utils.structure.collection.list
 

Methods in org.omnaest.utils.structure.collection.list with parameters of type Factory
static
<E> List<E>
ListUtils.generateList(int numberOfElements, Factory<E> valueFactory)
          Generates a new List using the given value Factory to create all the elements the given number of times.
 

Uses of Factory in org.omnaest.utils.structure.collection.list.sorted
 

Constructors in org.omnaest.utils.structure.collection.list.sorted with parameters of type Factory
TreeList(Factory<SortedMap<AccessorReadable<E>,TreeList.ElementList>> elementToEqualElementListMapFactory)
           
 

Uses of Factory in org.omnaest.utils.structure.element
 

Methods in org.omnaest.utils.structure.element with parameters of type Factory
static
<O> O
ObjectUtils.defaultIfNull(O object, Factory<O> defaultObjectFactory)
          Returns the object parameter if it is not null, otherwise the object created by the given Factory .
 

Uses of Factory in org.omnaest.utils.structure.element.factory
 

Subinterfaces of Factory in org.omnaest.utils.structure.element.factory
 interface FactorySerializable<E>
          Factory which is Serializable
 interface FactoryTypeAware<E>
          Type aware Factory which holds FactoryTypeAware.getInstanceType() information about the created instance type.
 interface FactoryWithArguments<E,A>
          Parameterized alternative to the Factory which provides a FactoryWithArguments.newInstance(Object...)
 

Uses of Factory in org.omnaest.utils.structure.element.factory.adapter
 

Classes in org.omnaest.utils.structure.element.factory.adapter that implement Factory
 class FactoryToFactoryTypeAwareAdapter<E>
          Adapter which allows to use a Factory in combination with a given type as FactoryTypeAware instance
 

Constructors in org.omnaest.utils.structure.element.factory.adapter with parameters of type Factory
FactoryToFactoryTypeAwareAdapter(Factory<E> factory, Class<E> instanceType)
           
 

Uses of Factory in org.omnaest.utils.structure.element.factory.concrete
 

Classes in org.omnaest.utils.structure.element.factory.concrete that implement Factory
 class ArrayListFactory<E>
          FactoryTypeAware creating new instances of ArrayList
 class FactoryTypeAwareReflectionBased<E>
          A FactoryTypeAware which uses ReflectionUtils.newInstanceOf(Class, Object...) to create new instances.
 class HashMapFactory<K,V>
          Factory for HashMap intances
 class HashSetFactory<E>
          FactoryTypeAware creating new instances of HashSet
 class LinkedHashSetFactory<E>
          FactoryTypeAware creating new instances of LinkedHashSet
 class ReadWriteLockFactory
          Factory creating a ReadWriteLock acting fair
 

Uses of Factory in org.omnaest.utils.structure.iterator
 

Methods in org.omnaest.utils.structure.iterator with parameters of type Factory
static
<E> Iterator<E>
IteratorUtils.factoryBasedIterator(Factory<Iterator<E>> iteratorFactory)
          Returns a new Iterator instance which will iterate over all Iterator instances created by the given Factory.
static
<E> Iterable<E>
IterableUtils.valueOf(Factory<Iterator<E>> iteratorFactory)
          Returns a new Iterable based on a given Factory for Iterators
 

Uses of Factory in org.omnaest.utils.structure.map
 

Fields in org.omnaest.utils.structure.map declared as Factory
protected  Factory<Map<K,V>> ThreadLocalMap.mapFactory
           
 

Methods in org.omnaest.utils.structure.map with parameters of type Factory
static
<K extends Enum<K>,V>
EnumMap<K,V>
MapUtils.initializedEnumMap(Class<K> enumType, Factory<V> factory)
          Returns an EnumMap filled with all available values of the given Enum type as keys and the result of the Factory as value for each Enum key.
static
<K,V> Map<K,V>
MapUtils.initializedMap(Factory<V> valueFactory)
          Similar to MapUtils.initializedMap(Map, Factory) using a new LinkedHashMap instance
static
<K,V> Map<K,V>
MapUtils.initializedMap(Map<K,V> map, Factory<V> valueFactory)
          Returns a MapDecorator which ensures that all Map.get(Object) invocations with a valid key type will return a value.
static
<K,V> SortedMap<K,V>
MapUtils.initializedSortedMap(SortedMap<K,V> sortedMap, Factory<V> valueFactory)
          Similar to MapUtils.initializedMap(Map, Factory) but for any SortedMap instance
static
<K,V> void
MapUtils.initializeMap(Map<K,V> map, Iterable<K> keyIterable, Factory<V> valueFactory)
          Similar to MapUtils.initializeMap(Map, Iterable, Factory, boolean) but does not overwrite values of already existing keys.
static
<K,V> void
MapUtils.initializeMap(Map<K,V> map, Iterable<K> keyIterable, Factory<V> valueFactory, boolean overwriteValuesOfExistingKeys)
          Initializes the given Map for all keys from the key Iterable with values created by the value newInstance() method.
static
<K,V> boolean
MapUtils.putIfAbsent(Map<K,V> map, K key, Factory<V> valueFactory)
          Puts the given key and value into the given Map only if there is no equal key already contained within the Map.
 void ThreadLocalMap.setMapFactory(Factory<Map<K,V>> mapFactory)
          Sets the Factory for new Map instances.
 



Copyright © 2013. All Rights Reserved.