All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xtext.gradle.idea.tasks.IdeaPluginRepositories Maven / Gradle / Ivy

There is a newer version: 2.0.9-alpha.3
Show newest version
package org.xtext.gradle.idea.tasks;

import java.util.Comparator;
import java.util.Iterator;
import java.util.TreeSet;
import org.eclipse.xtext.xbase.lib.CollectionLiterals;
import org.xtext.gradle.idea.tasks.IdeaPluginRepository;

@SuppressWarnings("all")
public class IdeaPluginRepositories implements Iterable {
  private final TreeSet repositories = CollectionLiterals.newTreeSet(new Comparator() {
    @Override
    public int compare(final IdeaPluginRepository $0, final IdeaPluginRepository $1) {
      String _url = $0.getUrl();
      String _url_1 = $1.getUrl();
      return _url.compareTo(_url_1);
    }
  });
  
  public void url(final String url) {
    IdeaPluginRepository _ideaPluginRepository = new IdeaPluginRepository(url);
    this.repositories.add(_ideaPluginRepository);
  }
  
  @Override
  public Iterator iterator() {
    return this.repositories.iterator();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy