Class ComparableVersion.ListItem
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<ComparableVersion.Item>
org.apache.maven.artifact.versioning.ComparableVersion.ListItem
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<ComparableVersion.Item>
,Collection<ComparableVersion.Item>
,List<ComparableVersion.Item>
,RandomAccess
,ComparableVersion.Item
- Enclosing class:
- ComparableVersion
private static class ComparableVersion.ListItem
extends ArrayList<ComparableVersion.Item>
implements ComparableVersion.Item
Represents a version list item. This class is used both for the global item list and for sub-lists (which start
with '-(number)' in the version specification).
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface org.apache.maven.artifact.versioning.ComparableVersion.Item
BIGINTEGER_ITEM, INT_ITEM, LIST_ITEM, LONG_ITEM, STRING_ITEM
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ListItem
private ListItem()
-
-
Method Details
-
getType
public int getType()- Specified by:
getType
in interfaceComparableVersion.Item
-
isNull
public boolean isNull()- Specified by:
isNull
in interfaceComparableVersion.Item
-
normalize
void normalize() -
compareTo
- Specified by:
compareTo
in interfaceComparableVersion.Item
-
toString
- Overrides:
toString
in classAbstractCollection<ComparableVersion.Item>
-
toListString
Return the contents in the same format that is used when you call toString() on a List.
-