Class ComparableVersion.ListItem
java.lang.Object
java.util.AbstractCollection<ComparableVersion.Item>
java.util.AbstractList<ComparableVersion.Item>
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,SequencedCollection<ComparableVersion.Item>,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
modCountFields 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, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
ListItem
private ListItem()
-
-
Method Details
-
getType
public int getType()- Specified by:
getTypein interfaceComparableVersion.Item
-
isNull
public boolean isNull()- Specified by:
isNullin interfaceComparableVersion.Item
-
normalize
void normalize() -
compareTo
- Specified by:
compareToin interfaceComparableVersion.Item
-
toString
- Overrides:
toStringin classAbstractCollection<ComparableVersion.Item>
-
toListString
Return the contents in the same format that is used when you call toString() on a List.
-