Class FastFactoryAttribute<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,V,FactoryAttribute<R,L,V>>
-
- io.github.factoryfx.factory.fastfactory.FastFactoryAttribute<R,F,L,V>
-
- All Implemented Interfaces:
AttributeCopy<V>,AttributeMatch<V>,AttributeMerger<V>,AttributeValue<V>
public class FastFactoryAttribute<R extends FactoryBase<?,R>,F extends FactoryBase<?,R>,L,V extends FactoryBase<L,R>> extends FastFactoryAttributeUtility<R,F,V,FactoryAttribute<R,L,V>>
-
-
Field Summary
-
Fields inherited from class io.github.factoryfx.factory.fastfactory.FastFactoryAttributeUtility
valueGetter, valueSetter
-
-
Constructor Summary
Constructors Constructor Description FastFactoryAttribute(java.util.function.Supplier<FactoryAttribute<R,L,V>> attributeCreator, java.util.function.Function<F,V> valueGetter, java.util.function.BiConsumer<F,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 FactoryAttribute<R,L,V>getAttribute()voidinternal_copyTo(AttributeCopy<V> copyAttribute, int level, int maxLevel, java.util.List<FactoryBase<?,?>> oldData, FactoryBase<?,?> parent, FactoryBase<?,?> root)voidinternal_merge(V newValue)booleaninternal_mergeMatch(AttributeMatch<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<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
-
-
-
-
Method Detail
-
getAttribute
protected FactoryAttribute<R,L,V> getAttribute()
- Overrides:
getAttributein classFastFactoryAttributeUtility<R extends FactoryBase<?,R>,F extends FactoryBase<?,R>,V extends FactoryBase<L,R>,FactoryAttribute<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>,V extends FactoryBase<L,R>,FactoryAttribute<R extends FactoryBase<?,R>,L,V extends FactoryBase<L,R>>>
-
internal_copyTo
public void internal_copyTo(AttributeCopy<V> copyAttribute, int level, int maxLevel, java.util.List<FactoryBase<?,?>> oldData, FactoryBase<?,?> parent, FactoryBase<?,?> root)
-
internal_semanticCopyTo
public void internal_semanticCopyTo(AttributeCopy<V> copyAttribute)
-
internal_mergeMatch
public boolean internal_mergeMatch(AttributeMatch<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(V newValue)
-
-