|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.bugzilla.Versions
public class Versions
Contains sections separated by their versions. The versions are not required to be known in advance.
Nested Class Summary | |
---|---|
static class |
Versions.VersionedSections A versioned sections information bundle. |
Constructor Summary | |
---|---|
Versions(List<String> sectionNames) Convenience constructor using the InverseVersionComparator to sort the version from large to small. |
|
Versions(List<String> sectionNames, Comparator<org.apache.maven.artifact.versioning.ArtifactVersion> comparator) Default constructor. |
Method Summary | |
---|---|
boolean |
add(org.apache.maven.artifact.versioning.ArtifactVersion version, String sectionName, org.eclipse.mylyn.tasks.core.data.TaskData taskData) Adds the task data to the section within the version. |
Iterator<Versions.VersionedSections> |
iterator() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Versions(List<String> sectionNames) throws NullPointerException
InverseVersionComparator
to sort the version from large to small.
sectionNames
- the list of sections to be put to the sections instance.
NullPointerException
- if the
sectionNames
list is
null
.
public Versions(List<String> sectionNames, Comparator<org.apache.maven.artifact.versioning.ArtifactVersion> comparator) throws NullPointerException
sectionNames
- the list of sections to be put to the sections instance.
comparator
- the comparator to use to sort the versions. If
NullPointerException
, the natural ordering is used.
NullPointerException
- if the
sectionNames
list is
null
.
Method Detail |
---|
public boolean add(org.apache.maven.artifact.versioning.ArtifactVersion version, String sectionName, org.eclipse.mylyn.tasks.core.data.TaskData taskData)
version
- the version to select the section.
sectionName
- the name of the section to add the task data to.
taskData
- the task data to add to the given section.
true
if the task data is added,
false
if not.
public Iterator<Versions.VersionedSections> iterator()
iterator
in interface
Iterable<Versions.VersionedSections>
Iterable.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |