Package xyz.rk0cc.josev.collections
Interface SemVerRangeCollection<R extends SemVerRange>
- Type Parameters:
R
- AppliedSemVerRange
.
- All Superinterfaces:
Collection<R>
,Iterable<R>
- All Known Implementing Classes:
SemVerMultipleRange
Enhanced
Collection
interface for handling SemVerRange
.- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends SemVerRange>
SemVerRangeCollection<R>buildList
(Collection<R> ranges) Parse multiple range toList
basedSemVerRangeCollection
.static <R extends SemVerRange>
SemVerRangeCollection<R>buildList
(R... ranges) Parse multiple range toList
basedSemVerRangeCollection
.static <R extends SemVerRange>
SemVerRangeCollection<R>buildSet
(Collection<R> ranges) Parse multiple range toSet
basedSemVerRangeCollection
.static <R extends SemVerRange>
SemVerRangeCollection<R>buildSet
(R... ranges) Parse multiple range toSet
basedSemVerRangeCollection
.elementAt
(int index) Get corresponded index ofSemVerRangeCollection
'sCollection
.
-
Method Details
-
elementAt
Get corresponded index ofSemVerRangeCollection
'sCollection
.- Parameters:
index
- Index ofCollection
.- Returns:
- A
range
object in the list. - Throws:
IndexOutOfBoundsException
- If index number is out of range.
-
where
- Parameters:
condition
- Condition of searching.- Returns:
- A
List
that matched thecondition
.
-
buildList
@SafeVarargs @Nonnull static <R extends SemVerRange> SemVerRangeCollection<R> buildList(R... ranges) Parse multiple range toList
basedSemVerRangeCollection
.- Type Parameters:
R
- Type uses for multiple range.- Parameters:
ranges
- Applied ranges.- Returns:
ArrayList
basedSemVerRangeCollection
.
-
buildList
Parse multiple range toList
basedSemVerRangeCollection
.- Type Parameters:
R
- Type uses for multiple range.- Parameters:
ranges
- Applied ranges under aCollection
.- Returns:
ArrayList
basedSemVerRangeCollection
.
-
buildSet
Parse multiple range toSet
basedSemVerRangeCollection
.- Type Parameters:
R
- Type uses for multiple range.- Parameters:
ranges
- Applied ranges.- Returns:
LinkedHashSet
basedSemVerRangeCollection
.
-
buildSet
Parse multiple range toSet
basedSemVerRangeCollection
.- Type Parameters:
R
- Type uses for multiple range.- Parameters:
ranges
- Applied ranges under aCollection
.- Returns:
LinkedHashSet
basedSemVerRangeCollection
.
-