Class RabbitMqBasicGetArraySupplier.Mapped<M,​T>

    • Method Detail

      • returnArrayOfLength

        public default THIS returnArrayOfLength​(int length)
        Sets count of items to take from the array of found/suitable elements. Invocation of this method erases value set by returnItemsOfIndexes(Integer...).
        Parameters:
        length - length of resulted array
        Returns:
        self-reference
      • returnBeforeIndex

        public default THIS returnBeforeIndex​(int index)
        Sets upper array index (exclusively) to take items from the array of found/suitable elements. Invocation of this method replaces value set by returnAfterIndex(int) and erases value set by returnItemsOfIndexes(Integer...)
        Parameters:
        index - is exclusive value of the upper index
        Returns:
        self-reference
      • returnAfterIndex

        public default THIS returnAfterIndex​(int index)
        Sets lower array index (exclusively) to take items from the array of found/suitable elements. Invocation of this method replaces value set by returnBeforeIndex(int) and erases value set by returnItemsOfIndexes(Integer...)
        Parameters:
        index - is exclusive value of the lower index
        Returns:
        self-reference
      • returnIfEntireLength

        public default THIS returnIfEntireLength​(ItemsCountCondition lengthCondition)
        Defines a length condition for entire array of found/suitable elements.
        Parameters:
        lengthCondition - a length condition for entire array
        Returns:
        self-reference
      • returnOnCondition

        public default THIS returnOnCondition​(Criteria<R[]> condition)
        Defines a condition for array of found/suitable elements.
        Parameters:
        condition - a condition for entire array
        Returns:
        self-reference
      • returnOnCondition

        public default THIS returnOnCondition​(String description,
                                              Predicate<T> predicate)
        Defines a condition for entire set of found/suitable elements.
        Parameters:
        description - describes the condition
        predicate - defines the condition
        Returns:
        self-reference
      • returnOnConditionOr

        public default THIS returnOnConditionOr​(Criteria<T>... condition)
        Defines a condition for entire set of found/suitable elements. Defined criteria will be transformed into OR-expression
        Parameters:
        condition - condition for entire set of items
        Returns:
        self-reference
      • returnOnConditionOnlyOne

        public default THIS returnOnConditionOnlyOne​(Criteria<T>... condition)
        Defines a condition for entire set of found/suitable elements. Defined criteria will be transformed into XOR-expression
        Parameters:
        condition - condition for entire set of items
        Returns:
        self-reference
      • returnOnConditionOnlyNot

        public default THIS returnOnConditionOnlyNot​(Criteria<T>... condition)
        Defines a condition for entire set of found/suitable elements. Defined criteria will be inverted
        Parameters:
        condition - condition for entire set of items
        Returns:
        self-reference