Class FastFactoryListAttribute<R extends FactoryBase<?,R>,F extends FactoryBase<?,R>,L,V extends FactoryBase<L,R>>
- java.lang.Object
-
- io.github.factoryfx.factory.fastfactory.FastFactoryAttributeUtility<R,F,java.util.List<V>,FactoryListAttribute<R,L,V>>
-
- io.github.factoryfx.factory.fastfactory.FastFactoryListAttribute<R,F,L,V>
-
- All Implemented Interfaces:
AttributeCopy<java.util.List<V>>,AttributeMatch<java.util.List<V>>,AttributeMerger<java.util.List<V>>,AttributeValue<java.util.List<V>>
public class FastFactoryListAttribute<R extends FactoryBase<?,R>,F extends FactoryBase<?,R>,L,V extends FactoryBase<L,R>> extends FastFactoryAttributeUtility<R,F,java.util.List<V>,FactoryListAttribute<R,L,V>>
-
-
Field Summary
-
Fields inherited from class io.github.factoryfx.factory.fastfactory.FastFactoryAttributeUtility
valueGetter, valueSetter
-
-
Constructor Summary
Constructors Constructor Description FastFactoryListAttribute(java.util.function.Supplier<FactoryListAttribute<R,L,V>> attributeCreator, java.util.function.Function<F,java.util.List<V>> valueGetter, java.util.function.BiConsumer<F,java.util.List<V>> valueSetter, java.lang.Class<V> referenceClass, java.lang.String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FactoryListAttribute<R,L,V>getAttribute()voidinternal_copyTo(AttributeCopy<java.util.List<V>> copyAttribute, int level, int maxLevel, java.util.List<FactoryBase<?,?>> oldData, FactoryBase<?,?> parent, FactoryBase<?,?> root)voidinternal_merge(java.util.List<V> newList)booleaninternal_mergeMatch(AttributeMatch<java.util.List<V>> value)alternative to equals on value, type-safe , less verbose, without worrying about hidden contracts indented for merge some with some serial case e.g ObjectValueAttributevoidinternal_semanticCopyTo(AttributeCopy<java.util.List<V>> copyAttribute)voidvisitChildFactory(java.util.function.Consumer<FactoryBase<?,R>> consumer)-
Methods inherited from class io.github.factoryfx.factory.fastfactory.FastFactoryAttributeUtility
accept, accept, accept, accept, bindFactory, get, internal_addBackReferences, internal_hasWritePermission, set, setAttribute, setAttributeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMatch
internal_referenceEquals, internal_referenceListEquals
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMerger
internal_mergeFactoryList
-
-
-
-
Constructor Detail
-
FastFactoryListAttribute
public FastFactoryListAttribute(java.util.function.Supplier<FactoryListAttribute<R,L,V>> attributeCreator, java.util.function.Function<F,java.util.List<V>> valueGetter, java.util.function.BiConsumer<F,java.util.List<V>> valueSetter, java.lang.Class<V> referenceClass, java.lang.String attributeName)
-
-
Method Detail
-
getAttribute
protected FactoryListAttribute<R,L,V> getAttribute()
- Overrides:
getAttributein classFastFactoryAttributeUtility<R extends FactoryBase<?,R>,F extends FactoryBase<?,R>,java.util.List<V extends FactoryBase<L,R>>,FactoryListAttribute<R extends FactoryBase<?,R>,L,V extends FactoryBase<L,R>>>
-
visitChildFactory
public void visitChildFactory(java.util.function.Consumer<FactoryBase<?,R>> consumer)
- Specified by:
visitChildFactoryin classFastFactoryAttributeUtility<R extends FactoryBase<?,R>,F extends FactoryBase<?,R>,java.util.List<V extends FactoryBase<L,R>>,FactoryListAttribute<R extends FactoryBase<?,R>,L,V extends FactoryBase<L,R>>>
-
internal_copyTo
public void internal_copyTo(AttributeCopy<java.util.List<V>> copyAttribute, int level, int maxLevel, java.util.List<FactoryBase<?,?>> oldData, FactoryBase<?,?> parent, FactoryBase<?,?> root)
-
internal_semanticCopyTo
public void internal_semanticCopyTo(AttributeCopy<java.util.List<V>> copyAttribute)
-
internal_mergeMatch
public boolean internal_mergeMatch(AttributeMatch<java.util.List<V>> value)
Description copied from interface:AttributeMatchalternative to equals on value, type-safe , less verbose, without worrying about hidden contracts indented for merge some with some serial case e.g ObjectValueAttribute- Parameters:
value- compare value- Returns:
- true if equals
-
internal_merge
public void internal_merge(java.util.List<V> newList)
-
-