Class OtherProjects

    • Constructor Detail

      • OtherProjects

        OtherProjects()
        Creates an instance.
    • Method Detail

      • getGenericParameterCount

        public int getGenericParameterCount()
        Description copied from interface: Collection
        Returns the number of generic parameters of T.
        Specified by:
        getGenericParameterCount in interface Collection<IArtifact>
        Returns:
        the number of generic parameter
      • getGenericParameterType

        public TypeDescriptor<?> getGenericParameterType​(int index)
        Description copied from interface: Collection
        Returns the type of the specified generic parameter of T.
        Specified by:
        getGenericParameterType in interface Collection<IArtifact>
        Parameters:
        index - the 0-based index of the generic parameter
        Returns:
        the actual type of the generic parameter
      • size

        public int size()
        Description copied from interface: Collection
        Returns the number of elements in the underlying collection.
        Specified by:
        size in interface Collection<IArtifact>
        Returns:
        the number of elements
      • allowSequenceAdjustment

        public boolean allowSequenceAdjustment()
        Description copied from interface: Collection
        Returns whether a IStringValueProvider may reorder the sequence of this collection for (test) output.
        Specified by:
        allowSequenceAdjustment in interface Collection<IArtifact>
        Returns:
        true if a value provider may reorder the sequence, false else
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: Collection
        Returns whether the collection is empty.
        Specified by:
        isEmpty in interface Collection<IArtifact>
        Returns:
        true if it is empty, false else
      • includes

        public boolean includes​(IArtifact element)
        Description copied from interface: Collection
        Returns whether this collection contains a certain element.
        Specified by:
        includes in interface Collection<IArtifact>
        Parameters:
        element - the element to look for
        Returns:
        true if this collection contains element, false else
      • excludes

        public boolean excludes​(IArtifact element)
        Description copied from interface: Collection
        Returns whether this collection does not contain a certain element.
        Specified by:
        excludes in interface Collection<IArtifact>
        Parameters:
        element - the element to look for
        Returns:
        true if this collection does not contain element, true else
      • count

        public int count​(IArtifact element)
        Description copied from interface: Collection
        Returns the number of elements in this collection which are equal to element.
        Specified by:
        count in interface Collection<IArtifact>
        Parameters:
        element - the element to look for
        Returns:
        the number of equal elements in this collection
      • iterator

        public java.util.Iterator<IArtifact> iterator()
        Description copied from interface: Collection
        Returns an iterator on the individual elements of this collection.
        Specified by:
        iterator in interface Collection<IArtifact>
        Specified by:
        iterator in interface java.lang.Iterable<IArtifact>
        Returns:
        the iterator
      • isEquals

        public boolean isEquals​(Collection<?> elements)
        Description copied from interface: Collection
        Returns whether this collection is equal to elements. Please note that the actual semantics, i.e., whether the elements must also be in the same sequence, depends on the actual semantics of the collection.
        Specified by:
        isEquals in interface Collection<IArtifact>
        Parameters:
        elements - the collection to be tested
        Returns:
        true if both collections are considered to be equal, false else
      • getStringValue

        public java.lang.String getStringValue​(IStringValueProvider.StringComparator comparator)
        Description copied from interface: IStringValueProvider
        Returns the string value of this object.
        Specified by:
        getStringValue in interface IStringValueProvider
        Parameters:
        comparator - if the sequence of elements, e.g., in case of collections, shall be ordered according to the comparator, null if the original sequence shall be returned
        Returns:
        the string value
      • typeReject

        public Set<IArtifact> typeReject​(TypeDescriptor<?> type)
        Description copied from interface: Collection
        Does type selection of elements not having the same type (including subtypes).
        Specified by:
        typeReject in interface Collection<IArtifact>
        Specified by:
        typeReject in interface Set<IArtifact>
        Parameters:
        type - the target type
        Returns:
        the selected elements (the type will be adjusted to the actual type for type)
      • excluding

        public Set<IArtifact> excluding​(Collection<IArtifact> set)
        Description copied from interface: Set
        Exclude the elements in set.
        Specified by:
        excluding in interface Set<IArtifact>
        Parameters:
        set - the elements to be excluded
        Returns:
        this set without the elements in set
      • including

        public Set<IArtifact> including​(Collection<IArtifact> set)
        Description copied from interface: Set
        Include the elements in set. Duplicates will not be included.
        Specified by:
        including in interface Set<IArtifact>
        Parameters:
        set - the elements to be excluded
        Returns:
        this set without the elements in set
      • isAcyclic

        public boolean isAcyclic​(ExpressionEvaluator evaluator)
                          throws VilException
        Description copied from interface: Collection
        Returns whether the transitive closure over elements provided by this collection and evaluator does not contain a cycle.
        Specified by:
        isAcyclic in interface Collection<IArtifact>
        Parameters:
        evaluator - the evaluator providing the links/collections to follow
        Returns:
        true for cycle, false else
        Throws:
        VilException - in case that evaluation fails
      • apply

        public java.lang.Object apply​(ExpressionEvaluator evaluator)
                               throws VilException
        Description copied from interface: Collection
        Processes elements in this set by applying to given expression.
        Specified by:
        apply in interface Collection<IArtifact>
        Parameters:
        evaluator - the evaluator holding the iterator / expression to apply
        Returns:
        the aggregated value, null in case of no aggregation
        Throws:
        VilException - in case that selection fails
      • toSequence

        public Sequence<IArtifact> toSequence()
        Description copied from interface: Set
        Turns this set into a sequence.
        Specified by:
        toSequence in interface Set<IArtifact>
        Returns:
        the set containing the elements of this set
      • asSet

        public Set<IArtifact> asSet()
        Description copied from interface: Collection
        Turns this collection into a set.
        Specified by:
        asSet in interface Collection<IArtifact>
        Returns:
        the set containing the elements of this collection (excluding duplicates)
      • add

        public IArtifact add​(IArtifact artifact)
        Description copied from interface: Set
        Adds an element to this set.
        Specified by:
        add in interface Set<IArtifact>
        Parameters:
        artifact - the element to be added
        Returns:
        element
      • projectSingle

        public IArtifact projectSingle()
        Description copied from interface: Set
        In case that the sequence has exactly one element, this will be returned.
        Specified by:
        projectSingle in interface Set<IArtifact>
        Returns:
        the only element or null
      • remove

        public boolean remove​(IArtifact element)
        Description copied from interface: Set
        Removes the given element from this sequence.
        Specified by:
        remove in interface Set<IArtifact>
        Parameters:
        element - the element to be removed
        Returns:
        true of the element was removed, false else
      • toMappedSet

        public java.util.Set<IArtifact> toMappedSet()
        Description copied from interface: Set
        Converts back to a set for utilizing this with external classes.
        Specified by:
        toMappedSet in interface Set<IArtifact>
        Returns:
        the internal map
      • union

        public Set<IArtifact> union​(Set<IArtifact> set)
        Description copied from interface: Set
        Compute the union of this set and set (without duplicates).
        Specified by:
        union in interface Set<IArtifact>
        Parameters:
        set - the elements to be unified with this set
        Returns:
        the union of this set and set
      • intersection

        public Set<IArtifact> intersection​(Set<IArtifact> set)
        Description copied from interface: Set
        Returns the intersection of this set with set.
        Specified by:
        intersection in interface Set<IArtifact>
        Parameters:
        set - the elements to be unified with this set
        Returns:
        the intersection of this set and set
      • sum

        public IArtifact sum()
        Description copied from interface: Collection
        Returns the sum of all elements.
        Specified by:
        sum in interface Collection<IArtifact>
        Returns:
        the sum of all elements or null if the elements do not define addition
      • avg

        public java.lang.Object avg()
        Description copied from interface: Collection
        Returns the average of all elements.
        Specified by:
        avg in interface Collection<IArtifact>
        Returns:
        the average of all elements or null if the elements do not define addition or division
      • product

        public IArtifact product()
        Description copied from interface: Collection
        Returns the product of all elements.
        Specified by:
        product in interface Collection<IArtifact>
        Returns:
        the product of all elements or null if the elements do not define multiplication
      • min

        public IArtifact min()
        Description copied from interface: Collection
        Returns the minimum of all elements.
        Specified by:
        min in interface Collection<IArtifact>
        Returns:
        the minimum of all elements or null if the elements do not define the minimum operation
      • max

        public IArtifact max()
        Description copied from interface: Collection
        Returns the maximum of all elements.
        Specified by:
        max in interface Collection<IArtifact>
        Returns:
        the maximum of all elements or null if the elements do not define the maximum operation
      • includesAll

        public boolean includesAll​(Collection<?> elements)
        Description copied from interface: Collection
        Returns whether this collection contains all elements in elements.
        Specified by:
        includesAll in interface Collection<IArtifact>
        Parameters:
        elements - the elements to look for
        Returns:
        true if this collection contains all elements, false else
      • excludesAll

        public boolean excludesAll​(Collection<?> elements)
        Description copied from interface: Collection
        Returns whether this collection contains no elements from elements.
        Specified by:
        excludesAll in interface Collection<IArtifact>
        Parameters:
        elements - the elements to look for
        Returns:
        true if this collection contains none from elements, false else
      • one

        public IArtifact one​(ExpressionEvaluator evaluator)
                      throws VilException
        Description copied from interface: Collection
        Returns the element complying with the evaluator if there is exactly one.
        Specified by:
        one in interface Collection<IArtifact>
        Parameters:
        evaluator - the evaluator (results must evaluate to Boolean)
        Returns:
        the element complying with evaluator
        Throws:
        VilException - in case that evaluation fails
      • exists

        public java.lang.Boolean exists​(ExpressionEvaluator evaluator)
                                 throws VilException
        Description copied from interface: Collection
        Returns whether there exists on element in the collection for which the evaluator returns true.
        Specified by:
        exists in interface Collection<IArtifact>
        Parameters:
        evaluator - the evaluator
        Returns:
        true for the exists one, false else
        Throws:
        VilException - in case that evaluation fails
      • forAll

        public java.lang.Boolean forAll​(ExpressionEvaluator evaluator)
                                 throws VilException
        Description copied from interface: Collection
        Returns whether all elements in the collection for which the evaluator returns true.
        Specified by:
        forAll in interface Collection<IArtifact>
        Parameters:
        evaluator - the evaluator
        Returns:
        true for the exists one, false else
        Throws:
        VilException - in case that evaluation fails
      • isUnique

        public java.lang.Boolean isUnique​(ExpressionEvaluator evaluator)
                                   throws VilException
        Description copied from interface: Collection
        Returns whether the evaluator returns a different result for all elements in the collection.
        Specified by:
        isUnique in interface Collection<IArtifact>
        Parameters:
        evaluator - the evaluator
        Returns:
        true if all results are different, false else
        Throws:
        VilException - in case that evaluation fails
      • difference

        public Set<IArtifact> difference​(Set<IArtifact> set)
        Description copied from interface: Set
        Calculates the difference between this and the given set.
        Specified by:
        difference in interface Set<IArtifact>
        Parameters:
        set - the set to calculate the difference for
        Returns:
        the set difference
      • symmetricDifference

        public Set<IArtifact> symmetricDifference​(Set<IArtifact> set)
        Description copied from interface: Set
        Calculates the symmetric difference between this and the given set.
        Specified by:
        symmetricDifference in interface Set<IArtifact>
        Parameters:
        set - the set to calculate the difference for
        Returns:
        the symmetric set difference