Class ImmutableValueAttribute<T,​A extends Attribute<T,​A>>

    • Field Detail

      • value

        protected T value
    • Constructor Detail

      • ImmutableValueAttribute

        public ImmutableValueAttribute()
    • Method Detail

      • internal_mergeMatch

        public boolean internal_mergeMatch​(AttributeMatch<T> value)
        Description copied from interface: AttributeMatch
        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
        Parameters:
        value - compare value
        Returns:
        true if equals
      • get

        public T get()
      • set

        public void set​(T value)
      • internal_semanticCopyTo

        public void internal_semanticCopyTo​(AttributeCopy<T> copyAttribute)
      • getValue

        protected T getValue()
      • setValue

        protected void setValue​(T value)
      • nullable

        public A nullable()
      • defaultValue

        public A defaultValue​(T defaultValue)
      • internal_addBackReferences

        public void internal_addBackReferences​(FactoryBase<?,​?> root,
                                               FactoryBase<?,​?> parent)
        Parameters:
        root - factory tree root
        parent - data that contains the attribute
      • getNullable

        public java.util.Optional<T> getNullable()