org.eclipse.modisco.infra.discovery.benchmark.api
Interface IProjectSet

All Superinterfaces:
java.util.Collection<IProject>, java.lang.Iterable<IProject>, java.util.List<IProject>

public interface IProjectSet
extends java.util.List<IProject>

Interface for the management of project set, basically a specialization of the list interface for projects

Author:
Guillaume Doux

Method Summary
 void add(int arg0, IProject arg1)
           
 boolean add(IProject arg0)
           
 boolean addAll(java.util.Collection<? extends IProject> arg0)
           
 boolean addAll(int arg0, java.util.Collection<? extends IProject> arg1)
           
 void clear()
           
 boolean contains(java.lang.Object arg0)
           
 boolean containsAll(java.util.Collection<?> arg0)
           
 boolean equals(java.lang.Object arg0)
           
 IProject get(int arg0)
           
 java.util.List<IProject> getProjects()
          the set of project
 int hashCode()
           
 int indexOf(java.lang.Object arg0)
           
 boolean isEmpty()
           
 java.util.Iterator<IProject> iterator()
           
 int lastIndexOf(java.lang.Object arg0)
           
 java.util.ListIterator<IProject> listIterator()
           
 java.util.ListIterator<IProject> listIterator(int arg0)
           
 IProject remove(int arg0)
           
 boolean remove(java.lang.Object arg0)
           
 boolean removeAll(java.util.Collection<?> arg0)
           
 boolean retainAll(java.util.Collection<?> arg0)
           
 IProject set(int arg0, IProject arg1)
           
 int size()
           
 IProjectSet sortBySize()
          sort the project and return itself.
 java.util.List<IProject> subList(int arg0, int arg1)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] arg0)
           
 

Method Detail

add

void add(int arg0,
         IProject arg1)
Specified by:
add in interface java.util.List<IProject>
See Also:
List.add(int, Object)

add

boolean add(IProject arg0)
Specified by:
add in interface java.util.Collection<IProject>
Specified by:
add in interface java.util.List<IProject>
See Also:
List.add(Object)

addAll

boolean addAll(java.util.Collection<? extends IProject> arg0)
Specified by:
addAll in interface java.util.Collection<IProject>
Specified by:
addAll in interface java.util.List<IProject>
See Also:
List.addAll(Collection)

addAll

boolean addAll(int arg0,
               java.util.Collection<? extends IProject> arg1)
Specified by:
addAll in interface java.util.List<IProject>
See Also:
List.addAll(int, Collection)

clear

void clear()
Specified by:
clear in interface java.util.Collection<IProject>
Specified by:
clear in interface java.util.List<IProject>
See Also:
List.clear()

contains

boolean contains(java.lang.Object arg0)
Specified by:
contains in interface java.util.Collection<IProject>
Specified by:
contains in interface java.util.List<IProject>
See Also:
List.contains(Object)

containsAll

boolean containsAll(java.util.Collection<?> arg0)
Specified by:
containsAll in interface java.util.Collection<IProject>
Specified by:
containsAll in interface java.util.List<IProject>
See Also:
List.containsAll(Collection)

equals

boolean equals(java.lang.Object arg0)
Specified by:
equals in interface java.util.Collection<IProject>
Specified by:
equals in interface java.util.List<IProject>
Overrides:
equals in class java.lang.Object
See Also:
List.equals(Object)

get

IProject get(int arg0)
Specified by:
get in interface java.util.List<IProject>
See Also:
List.get(int)

hashCode

int hashCode()
Specified by:
hashCode in interface java.util.Collection<IProject>
Specified by:
hashCode in interface java.util.List<IProject>
Overrides:
hashCode in class java.lang.Object
See Also:
List.hashCode()

indexOf

int indexOf(java.lang.Object arg0)
Specified by:
indexOf in interface java.util.List<IProject>
See Also:
List.indexOf(Object)

isEmpty

boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<IProject>
Specified by:
isEmpty in interface java.util.List<IProject>
See Also:
List.isEmpty()

iterator

java.util.Iterator<IProject> iterator()
Specified by:
iterator in interface java.util.Collection<IProject>
Specified by:
iterator in interface java.lang.Iterable<IProject>
Specified by:
iterator in interface java.util.List<IProject>
See Also:
List.iterator()

lastIndexOf

int lastIndexOf(java.lang.Object arg0)
Specified by:
lastIndexOf in interface java.util.List<IProject>
See Also:
List.lastIndexOf(Object)

listIterator

java.util.ListIterator<IProject> listIterator()
Specified by:
listIterator in interface java.util.List<IProject>
See Also:
List.listIterator()

listIterator

java.util.ListIterator<IProject> listIterator(int arg0)
Specified by:
listIterator in interface java.util.List<IProject>
See Also:
List.listIterator(int)

remove

IProject remove(int arg0)
Specified by:
remove in interface java.util.List<IProject>
See Also:
List.remove(int)

remove

boolean remove(java.lang.Object arg0)
Specified by:
remove in interface java.util.Collection<IProject>
Specified by:
remove in interface java.util.List<IProject>
See Also:
List.remove(Object)

removeAll

boolean removeAll(java.util.Collection<?> arg0)
Specified by:
removeAll in interface java.util.Collection<IProject>
Specified by:
removeAll in interface java.util.List<IProject>
See Also:
List.removeAll(Collection)

retainAll

boolean retainAll(java.util.Collection<?> arg0)
Specified by:
retainAll in interface java.util.Collection<IProject>
Specified by:
retainAll in interface java.util.List<IProject>
See Also:
List.retainAll(Collection)

set

IProject set(int arg0,
             IProject arg1)
Specified by:
set in interface java.util.List<IProject>
See Also:
List.set(int, Object)

size

int size()
Specified by:
size in interface java.util.Collection<IProject>
Specified by:
size in interface java.util.List<IProject>
See Also:
List.size()

subList

java.util.List<IProject> subList(int arg0,
                                 int arg1)
Specified by:
subList in interface java.util.List<IProject>
See Also:
List.subList(int, int)

toArray

java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<IProject>
Specified by:
toArray in interface java.util.List<IProject>
See Also:
List.toArray()

toArray

<T> T[] toArray(T[] arg0)
Specified by:
toArray in interface java.util.Collection<IProject>
Specified by:
toArray in interface java.util.List<IProject>
See Also:
List.toArray(Object[])

getProjects

java.util.List<IProject> getProjects()
the set of project

Returns:
a List of IProject

sortBySize

IProjectSet sortBySize()
sort the project and return itself.

Returns: