Class ObjectValueAttribute<T>
- java.lang.Object
-
- io.github.factoryfx.factory.attribute.Attribute<T,A>
-
- io.github.factoryfx.factory.attribute.ImmutableValueAttribute<T,ObjectValueAttribute<T>>
-
- io.github.factoryfx.factory.attribute.types.ObjectValueAttribute<T>
-
- All Implemented Interfaces:
AttributeCopy<T>,AttributeMatch<T>,AttributeMerger<T>,AttributeValue<T>
public class ObjectValueAttribute<T> extends ImmutableValueAttribute<T,ObjectValueAttribute<T>>
special case attribute to pass object from outside in the application. the ObjectValue ist not serialised or merged
-
-
Field Summary
-
Fields inherited from class io.github.factoryfx.factory.attribute.ImmutableValueAttribute
value
-
-
Constructor Summary
Constructors Constructor Description ObjectValueAttribute()ObjectValueAttribute(java.util.function.Consumer<ObjectValueAttribute<T>> setup)Explanation see:FactoryAttribute(Consumer)}
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinternal_merge(T newValue)booleaninternal_mergeMatch(AttributeMatch<T> 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 ObjectValueAttribute-
Methods inherited from class io.github.factoryfx.factory.attribute.ImmutableValueAttribute
defaultValue, get, getDisplayText, getNullable, getValue, internal_addBackReferences, internal_copyTo, internal_required, internal_reset, internal_semanticCopyTo, internal_validate, nullable, set, setValue
-
Methods inherited from class io.github.factoryfx.factory.attribute.Attribute
addonText, createAttributeStorageMetadata, de, en, es, fr, internal_addListener, internal_endUsage, internal_getAddonText, internal_getListeners, internal_getPreferredLabelText, internal_getPreferredTooltipText, internal_hasWritePermission, internal_isUserReadOnly, internal_removeAllListener, internal_removeListener, it, labelText, labelText, listenersEmpty, permission, pt, tooltipDe, tooltipEn, updateListeners, userReadOnly, userReadOnly, validation
-
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
-
ObjectValueAttribute
public ObjectValueAttribute()
-
ObjectValueAttribute
public ObjectValueAttribute(java.util.function.Consumer<ObjectValueAttribute<T>> setup)
Explanation see:FactoryAttribute(Consumer)}- Parameters:
setup- setup function
-
-
Method Detail
-
internal_merge
public void internal_merge(T newValue)
- Specified by:
internal_mergein interfaceAttributeMerger<T>- Overrides:
internal_mergein classAttribute<T,ObjectValueAttribute<T>>
-
internal_mergeMatch
public boolean internal_mergeMatch(AttributeMatch<T> 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- Specified by:
internal_mergeMatchin interfaceAttributeMatch<T>- Overrides:
internal_mergeMatchin classImmutableValueAttribute<T,ObjectValueAttribute<T>>- Parameters:
value- compare value- Returns:
- true if equals
-
-