Skip to content

Commit 9f19bbe

Browse files
committed
add @SInCE versions
1 parent 3a913e5 commit 9f19bbe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12587,6 +12587,7 @@ public static <T> T removeLast(List<T> self) {
1258712587
* @param self an Iterable
1258812588
* @param count the (non-negative) number of times to repeat
1258912589
* @return a collection containing the repeated elements
12590+
* @since 5.0.0
1259012591
*/
1259112592
public static <T> Collection<T> repeat(Iterable<T> self, int count) {
1259212593
Collection<T> result = self instanceof Collection ? createSimilarCollection((Collection<T>) self, Math.max(count, 0)) : new ArrayList<>();
@@ -12603,6 +12604,7 @@ public static <T> Collection<T> repeat(Iterable<T> self, int count) {
1260312604
*
1260412605
* @param self an Iterable
1260512606
* @return an iterator containing the (infinite) repeated elements
12607+
* @since 5.0.0
1260612608
*/
1260712609
public static <T> Iterator<T> repeat(Iterable<T> self) {
1260812610
return repeat(self.iterator());
@@ -12618,6 +12620,7 @@ public static <T> Iterator<T> repeat(Iterable<T> self) {
1261812620
* @param self an Iterator
1261912621
* @param count the (non-negative) number of times to repeat
1262012622
* @return an iterator containing the repeated elements
12623+
* @since 5.0.0
1262112624
*/
1262212625
public static <T> Iterator<T> repeat(Iterator<T> self, int count) {
1262312626
return new RepeatIterator<>(self, count);
@@ -12632,6 +12635,7 @@ public static <T> Iterator<T> repeat(Iterator<T> self, int count) {
1263212635
*
1263312636
* @param self an Iterable
1263412637
* @return an iterator containing the (infinite) repeated elements
12638+
* @since 5.0.0
1263512639
*/
1263612640
public static <T> Iterator<T> repeat(Iterator<T> self) {
1263712641
return new RepeatIterator<>(self);

0 commit comments

Comments
 (0)