Skip to content
Snippets Groups Projects
Select Git revision
  • c588c9d80944348319b4f80f0c101c0ffeffb1ac
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

ProjectController.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    AddSet.java 1002 B
    /**
     * @param <E> Element type.
     * Simple functional set adding an element to another simple functional set.
     */
    public class AddSet<E> extends SimpleFunctionalSet<E> {
    
        /**
         * The element to add.
         */
        private final E element;
    
        /**
         * @param elem The element to add.
         * @param s The remaining set.
         */
        public AddSet(E elem, SimpleFunctionalSet<E> s) {
            super(s);
            this.element = elem;
        }
    
        @Override
        public boolean contains(Object o) {
            if (this.element == null) {
                if (o == null) {
                    return true;
                } else {
                    return this.getRemainingSet().contains(o);
                }
            } else if (this.element.equals(o)) {
                return true;
            } else {
                return this.getRemainingSet().contains(o);
            }
        }
    
        /**
         * @return The element to add.
         */
        public E getElement() {
            return this.element;
        }
    
    }