|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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
|
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
|
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
|
IteratorUtils.factoryBasedIterator(Factory<Iterator<E>> iteratorFactory)
Returns a new Iterator instance which will iterate over all Iterator instances created by the given
Factory. |
|
static
|
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
|
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
|
MapUtils.initializedMap(Factory<V> valueFactory)
Similar to MapUtils.initializedMap(Map, Factory) using a new LinkedHashMap instance |
|
static
|
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
|
MapUtils.initializedSortedMap(SortedMap<K,V> sortedMap,
Factory<V> valueFactory)
Similar to MapUtils.initializedMap(Map, Factory) but for any SortedMap instance |
|
static
|
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
|
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
|
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. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||