Class FactoryListBaseAttribute<R extends FactoryBase<?,​R>,​L,​F extends FactoryBase<? extends L,​R>,​A extends FactoryListBaseAttribute<R,​L,​F,​A>>

    • Constructor Detail

      • FactoryListBaseAttribute

        public FactoryListBaseAttribute()
    • Method Detail

      • instances

        public java.util.List<L> instances()
      • instances

        public L instances​(java.util.function.Predicate<F> filter)
      • internal_mergeMatch

        public boolean internal_mergeMatch​(AttributeMatch<java.util.List<F>> 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
        Specified by:
        internal_mergeMatch in interface AttributeMatch<R extends FactoryBase<?,​R>>
        Parameters:
        value - compare value
        Returns:
        true if equals
      • filtered

        public java.util.List<F> filtered​(java.util.function.Predicate<F> predicate)
      • internal_deleteFactory

        public void internal_deleteFactory​(F factory)
      • sort

        public void sort​(java.util.Comparator<? super F> c)
        Specified by:
        sort in interface java.util.List<R extends FactoryBase<?,​R>>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        isEmpty in interface java.util.List<R extends FactoryBase<?,​R>>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        contains in interface java.util.List<R extends FactoryBase<?,​R>>
      • iterator

        public java.util.Iterator<F> iterator()
        Specified by:
        iterator in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        iterator in interface java.lang.Iterable<R extends FactoryBase<?,​R>>
        Specified by:
        iterator in interface java.util.List<R extends FactoryBase<?,​R>>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        toArray in interface java.util.List<R extends FactoryBase<?,​R>>
      • toArray

        public <T1> T1[] toArray​(T1[] a)
        Specified by:
        toArray in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        toArray in interface java.util.List<R extends FactoryBase<?,​R>>
      • stream

        public java.util.stream.Stream<F> stream()
        Specified by:
        stream in interface java.util.Collection<R extends FactoryBase<?,​R>>
      • parallelStream

        public java.util.stream.Stream<F> parallelStream()
        Specified by:
        parallelStream in interface java.util.Collection<R extends FactoryBase<?,​R>>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        remove in interface java.util.List<R extends FactoryBase<?,​R>>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        containsAll in interface java.util.List<R extends FactoryBase<?,​R>>
      • addAll

        public boolean addAll​(java.util.Collection<? extends F> c)
        Specified by:
        addAll in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        addAll in interface java.util.List<R extends FactoryBase<?,​R>>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends F> c)
        Specified by:
        addAll in interface java.util.List<R extends FactoryBase<?,​R>>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        removeAll in interface java.util.List<R extends FactoryBase<?,​R>>
      • removeIf

        public boolean removeIf​(java.util.function.Predicate<? super F> filter)
        Specified by:
        removeIf in interface java.util.Collection<R extends FactoryBase<?,​R>>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        retainAll in interface java.util.List<R extends FactoryBase<?,​R>>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        clear in interface java.util.List<R extends FactoryBase<?,​R>>
      • get

        public F get​(int index)
        Specified by:
        get in interface java.util.List<R extends FactoryBase<?,​R>>
      • set

        public F set​(int index,
                     F element)
        Specified by:
        set in interface java.util.List<R extends FactoryBase<?,​R>>
      • add

        public void add​(int index,
                        F element)
        Specified by:
        add in interface java.util.List<R extends FactoryBase<?,​R>>
      • remove

        public F remove​(int index)
        Specified by:
        remove in interface java.util.List<R extends FactoryBase<?,​R>>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<R extends FactoryBase<?,​R>>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<R extends FactoryBase<?,​R>>
      • listIterator

        public java.util.ListIterator<F> listIterator()
        Specified by:
        listIterator in interface java.util.List<R extends FactoryBase<?,​R>>
      • listIterator

        public java.util.ListIterator<F> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<R extends FactoryBase<?,​R>>
      • subList

        public java.util.List<F> subList​(int fromIndex,
                                         int toIndex)
        Specified by:
        subList in interface java.util.List<R extends FactoryBase<?,​R>>
      • spliterator

        public java.util.Spliterator<F> spliterator()
        Specified by:
        spliterator in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        spliterator in interface java.lang.Iterable<R extends FactoryBase<?,​R>>
        Specified by:
        spliterator in interface java.util.List<R extends FactoryBase<?,​R>>
      • forEach

        public void forEach​(java.util.function.Consumer<? super F> action)
        Specified by:
        forEach in interface java.lang.Iterable<R extends FactoryBase<?,​R>>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        size in interface java.util.List<R extends FactoryBase<?,​R>>
      • add

        public boolean add​(F value)
        Specified by:
        add in interface java.util.Collection<R extends FactoryBase<?,​R>>
        Specified by:
        add in interface java.util.List<R extends FactoryBase<?,​R>>
      • defaultExpanded

        public A defaultExpanded()
      • internal_isDefaultExpanded

        public boolean internal_isDefaultExpanded()
        edit hint to show list initial expanded
        Returns:
        self
      • batchModify

        public void batchModify​(java.util.function.Consumer<java.util.List<F>> batchAction)
        add is costly with the change detection and root back reference adding this halt the change detection until batch is ended;
        Parameters:
        batchAction - batchAction